Cleanup dmmap on config download

This commit is contained in:
Suvendhu Hansa 2026-02-26 10:54:51 +05:30 committed by IOPSYS Dev
parent 9811a907c7
commit f5897d89d8
No known key found for this signature in database

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: