zebra: Set the INSTALLED flags on nexthop entries we receive

Add SETs to the flags on nexthop entries to mark
 installed/uninstalled from the kernel.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
This commit is contained in:
Stephen Worley 2019-03-08 10:23:34 -05:00
parent 8e76637969
commit 044e54d1eb

View File

@ -2299,6 +2299,8 @@ int netlink_nexthop_change(struct nlmsghdr *h, ns_id_t ns_id, int startup)
return -1;
}
}
SET_FLAG(nhe->flags, NEXTHOP_GROUP_INSTALLED);
} else if (h->nlmsg_type == RTM_DELNEXTHOP) {
if (!nhe) {
flog_warn(
@ -2308,6 +2310,8 @@ int netlink_nexthop_change(struct nlmsghdr *h, ns_id_t ns_id, int startup)
return -1;
}
UNSET_FLAG(nhe->flags, NEXTHOP_GROUP_INSTALLED);
// TODO: Run some active check on all route_entry's?
if (nhe->refcnt) {
flog_err(