]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_zebra.c
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>
Mon, 30 Apr 2018 09:56:23 +0000 (11:56 +0200)
commita6b07429a4b0e4959a33ad2e17de6da5017dc438
tree70a8594fceee2f629436c30ccb042df91c9fc400
parentac7c35f8b65785897c7c433250270a232f6b0eb0
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