From 104a70d46ca7bd13959df072e47350dc07dbb43a Mon Sep 17 00:00:00 2001 From: Richard Alpe Date: Mon, 5 Feb 2024 15:30:00 +0100 Subject: [PATCH] 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 --- src/confd/src/ietf-interfaces.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/confd/src/ietf-interfaces.c b/src/confd/src/ietf-interfaces.c index 6b17ec71..fa1d5899 100644 --- a/src/confd/src/ietf-interfaces.c +++ b/src/confd/src/ietf-interfaces.c @@ -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; }