summaryrefslogtreecommitdiff
path: root/lib/vrf.h
diff options
context:
space:
mode:
authorvivek <vivek@cumulusnetworks.com>2016-02-22 06:36:37 +0000
committervivek <vivek@cumulusnetworks.com>2016-02-22 06:36:37 +0000
commit009b18fc80ae4397196de68aa8c01fc3e48f0fc5 (patch)
treec15a8252332b05842d181ac0ec5b3247833d922c /lib/vrf.h
parentceebe0c4e04f618ea790fe0d31de00b2fb6e136f (diff)
BGP: Cleanup interfaces properly on instance delete or exit
Perform interface cleanup as an instance is deleted. This takes care of the scenario when BGP exits (or is stopped/restarted) too as instances undergo deletion and the interface cleanup is done as the last step in that. Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Fixes: 46abd3e3e6eb1f723ea7905c9919b65f1a76f385 Ticket: CM-9410 Reviewed By: CCR-4143 Testing Done: Reran failed test
Diffstat (limited to 'lib/vrf.h')
-rw-r--r--lib/vrf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/vrf.h b/lib/vrf.h
index 3ef2979dc1..9f3b231735 100644
--- a/lib/vrf.h
+++ b/lib/vrf.h
@@ -180,6 +180,8 @@ extern void *vrf_info_lookup (vrf_id_t);
extern struct list *vrf_iflist (vrf_id_t);
/* Get the interface list of the specified VRF. Create one if not find. */
extern struct list *vrf_iflist_get (vrf_id_t);
+/* Free the interface list of the specified VRF. */
+extern void vrf_iflist_terminate (vrf_id_t vrf_id);
/*
* VRF bit-map: maintaining flags, one bit per VRF ID