confd: Fix typo in veth code

Should check if any node under veth is changed instead
of peer (does not exist).
This commit is contained in:
Mattias Walström
2024-12-20 19:47:18 +01:00
parent cd5b076751
commit 08990556e2
+1 -1
View File
@@ -449,7 +449,7 @@ static bool netdag_must_del(struct lyd_node *dif, struct lyd_node *cif)
if (lydx_get_descendant(lyd_child(dif), "vlan", NULL))
return true;
} else if (!strcmp(iftype, "infix-if-type:veth")) {
if (lydx_get_descendant(lyd_child(dif), "peer", NULL))
if (lydx_get_descendant(lyd_child(dif), "veth", NULL))
return true;
/*
} else if (!strcmp(iftype, "infix-if-type:lag")) {