mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 02:43:41 +00:00
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 <iryzhov@nfware.com>
This commit is contained in:
parent
0b52b75a14
commit
8d62b34195
@ -953,12 +953,6 @@ DEFPY(ecmp_nexthops, ecmp_nexthops_cmd,
|
|||||||
nhg_hooks.add_nexthop(nhgc, nh);
|
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;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1265,7 +1259,6 @@ void nexthop_group_interface_state_change(struct interface *ifp,
|
|||||||
if (ifp->ifindex != nhop.ifindex)
|
if (ifp->ifindex != nhop.ifindex)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
ifp->configured = true;
|
|
||||||
nh = nexthop_new();
|
nh = nexthop_new();
|
||||||
|
|
||||||
memcpy(nh, &nhop, sizeof(nhop));
|
memcpy(nh, &nhop, sizeof(nhop));
|
||||||
|
Loading…
Reference in New Issue
Block a user