Refresh references db after calling delete method

This commit is contained in:
Amin Ben Romdhane 2025-06-26 16:36:52 +02:00
parent 928443c5c8
commit 8d55820ed1

View file

@ -587,6 +587,10 @@ int bbfdm_del_handler(struct ubus_context *ctx, struct ubus_object *obj,
bbf_cleanup(&data.bbf_ctx); bbf_cleanup(&data.bbf_ctx);
free_path_list(&paths_list); free_path_list(&paths_list);
if (!fault) {
bbfdm_refresh_references(data.bbf_ctx.dm_type, obj->name);
}
ubus_send_reply(ctx, req, data.bb.head); ubus_send_reply(ctx, req, data.bb.head);
blob_buf_free(&data.bb); blob_buf_free(&data.bb);