summaryrefslogtreecommitdiffstats
path: root/lib/vrf.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2018-03-22 18:02:00 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-03-23 15:25:48 +0100
commit0c902ba575789472612c0e18eaa6f5a27daec5b1 (patch)
tree3dea74f69a2402a56b7efbbe88386cf0f6095dc0 /lib/vrf.h
parentzebra: move hash rules creation to the vrf_enable place (diff)
downloadfrr-0c902ba575789472612c0e18eaa6f5a27daec5b1.tar.xz
frr-0c902ba575789472612c0e18eaa6f5a27daec5b1.zip
zebra: handle the zebra netns delete notifications
Upon a 'ip netns del' event, the associated vrf with netns backend is looked for, then the internal contexts are first disabled, then suppressed. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/vrf.h')
-rw-r--r--lib/vrf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/vrf.h b/lib/vrf.h
index 617405a77..eb35d97fe 100644
--- a/lib/vrf.h
+++ b/lib/vrf.h
@@ -279,5 +279,6 @@ extern int vrf_netns_handler_create(struct vty *vty, struct vrf *vrf,
*/
extern void vrf_disable(struct vrf *vrf);
extern int vrf_enable(struct vrf *vrf);
+extern void vrf_delete(struct vrf *vrf);
#endif /*_ZEBRA_VRF_H*/