From 8d62b34195b7ea7a02c9ea32c28acf86901688bc Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Thu, 14 Oct 2021 19:02:26 +0300 Subject: [PATCH] lib: remove wrong setting of interface configured flag The fact that the interface name is used in some nexthop config doesn't mean that the interface is configured. Signed-off-by: Igor Ryzhov --- lib/nexthop_group.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/nexthop_group.c b/lib/nexthop_group.c index 97d70189ff..af9cd2d79a 100644 --- a/lib/nexthop_group.c +++ b/lib/nexthop_group.c @@ -953,12 +953,6 @@ DEFPY(ecmp_nexthops, ecmp_nexthops_cmd, nhg_hooks.add_nexthop(nhgc, nh); } - if (intf) { - struct interface *ifp = if_lookup_by_name_all_vrf(intf); - - if (ifp) - ifp->configured = true; - } return CMD_SUCCESS; } @@ -1265,7 +1259,6 @@ void nexthop_group_interface_state_change(struct interface *ifp, if (ifp->ifindex != nhop.ifindex) continue; - ifp->configured = true; nh = nexthop_new(); memcpy(nh, &nhop, sizeof(nhop)); -- 2.39.5