Cleanup dmmap on config download

This commit is contained in:
Suvendhu Hansa 2026-02-12 12:16:10 +05:30
parent 257c9fac69
commit 5dfb991d68

View file

@ -130,6 +130,10 @@ static int bbf_config_restore(struct ubus_context *ctx, const char *url, const c
if (dmuci_import(NULL, config_restore)) {
snprintf(fault_msg, sizeof(fault_msg), "Failed to import the configurations");
res = -1;
} else {
// Need to remove dmmap
dmuci_set_value_varstate("dmmap", "dmmap", "cleanup", "1");
dmuci_commit_package_varstate("dmmap");
}
end: