]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: handle bgp pbr hash list destroy upon BGP destroy
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 24 Apr 2018 14:35:00 +0000 (16:35 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 3 May 2018 13:15:08 +0000 (15:15 +0200)
commit317a239f224b6b51a0571030026330771f0cf9d9
tree5d7579f2defbc8dddf1ea508d4b4b91522e4d1bb
parentaeb8f086e010d1ff2d01cdaea957933a7fd12c76
bgpd: handle bgp pbr hash list destroy upon BGP destroy

Upon BGP destroy, the hash list related to PBR are removed.
The pbr_match entries, as well as the contained pbr_match_entries
entries.
Then the pbr_action entries. The order is important, since the former
are referencing pbr_action. So the references must be removed, prior to
remove pbr action.
Also, the zebra associated contexts are removed.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_pbr.c
bgpd/bgp_pbr.h
bgpd/bgp_zebra.c
bgpd/bgpd.c