mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-01 13:23:01 +02:00
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:
committed by
Joachim Wiberg
parent
795f2615cb
commit
104a70d46c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user