confd: handle etherlike delete as ethernet

This resolves the regression where configured etherlike interface mac
addresses where not deleted from the system.

Signed-off-by: Richard Alpe <richard@bit42.se>
This commit is contained in:
Richard Alpe
2024-02-05 18:01:30 +01:00
committed by Joachim Wiberg
parent 795f2615cb
commit 104a70d46c
+2 -1
View File
@@ -1070,7 +1070,8 @@ static bool netdag_must_del(struct lyd_node *dif, struct lyd_node *cif)
{
const char *iftype = lydx_get_cattr(cif, "type");
if (strcmp(iftype, "infix-if-type:ethernet")) {
if (strcmp(iftype, "infix-if-type:ethernet") &&
strcmp(iftype, "infix-if-type:etherlike")) {
if (is_phys_addr_deleted(dif))
return true;
}