]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: remove wrong setting of interface configured flag
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 14 Oct 2021 16:02:26 +0000 (19:02 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Thu, 28 Oct 2021 15:54:46 +0000 (18:54 +0300)
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 <iryzhov@nfware.com>
lib/nexthop_group.c

index 97d70189ff5f41567e04dcaccaa20cde0ce2dd5a..af9cd2d79ad8d6a5f25f0c8f4ad399a8fb407f59 100644 (file)
@@ -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));