]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_ns.c
zebra: read in and sweep rules on startup
authorStephen Worley <sworley@cumulusnetworks.com>
Wed, 8 Apr 2020 23:10:24 +0000 (19:10 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 10 Apr 2020 15:05:06 +0000 (11:05 -0400)
commitab35be755ff5902cd0887fdbd4ee753f2969d136
treebe0c3cb25df078ee47da6615e9452db379eff2ea
parentb6d34c260939cdcf7bba327108d2de35fc58fb54
zebra: read in and sweep rules on startup

On startup of zebra, read in all ipv4/ipv6 rules from
the kernel and remove any with the zebra proto.

If there are any, this means we failed to remove them
on shutdown due to a crash or something. Without this,
users have to manually remove them with iproute2 or some
such and its really annoying.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/rule_netlink.c
zebra/zebra_ns.c