confd: make sure to stop zeroconf agent on interface removal

When deleting interfaces we skip a lot of steps in netdag_gen_iface(),
this patch ensures we at least call netdag_gen_ipv4_autoconf() to drop
any running zeroconf agent in the same generation.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2024-11-28 15:11:26 +01:00
parent 6072ec45b3
commit 7483a6f454
+2 -1
View File
@@ -1821,7 +1821,8 @@ static sr_error_t netdag_gen_iface(sr_session_ctx_t *session, struct dagger *net
(op == LYDX_OP_NONE) ? "mod" : ((op == LYDX_OP_CREATE) ? "add" : "del"));
if (op == LYDX_OP_DELETE) {
err = netdag_gen_iface_del(net, dif, cif, fixed);
err = netdag_gen_iface_del(net, dif, cif, fixed);
err += netdag_gen_ipv4_autoconf(net, cif, dif);
goto err;
}