diff options
author | vivek <vivek@cumulusnetworks.com> | 2016-02-12 21:18:28 +0100 |
---|---|---|
committer | vivek <vivek@cumulusnetworks.com> | 2016-02-12 22:50:22 +0100 |
commit | ad4cbda1a32f0bf49d794ab5b156d49f95645871 (patch) | |
tree | 993552b92d530ec11c6b265fb513a189d18f5cfd /bgpd/bgp_zebra.h | |
parent | Quagga: Support VRF unregister for clients (diff) | |
download | frr-ad4cbda1a32f0bf49d794ab5b156d49f95645871.tar.xz frr-ad4cbda1a32f0bf49d794ab5b156d49f95645871.zip |
BGP: VRF registration and cleanup
Various changes and fixes related to VRF registration, deletion,
BGP exit etc.
- Define instance type
- Ensure proper handling upon instance create, delete and
VRF add/delete from zebra
- Cleanup upon bgp_exit()
- Ensure messages are not sent to zebra for unknown VRFs
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-9128, CM-7203
Reviewed By: CCR-4098
Testing Done: Manual
Diffstat (limited to 'bgpd/bgp_zebra.h')
-rw-r--r-- | bgpd/bgp_zebra.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bgpd/bgp_zebra.h b/bgpd/bgp_zebra.h index e21141238..308834ce2 100644 --- a/bgpd/bgp_zebra.h +++ b/bgpd/bgp_zebra.h @@ -29,7 +29,6 @@ extern struct stream *bgp_ifindices_buf; extern void bgp_zebra_init(struct thread_master *master); extern int bgp_if_update_all (void); -extern void bgp_vrf_update (struct bgp *); extern int bgp_config_write_maxpaths (struct vty *, struct bgp *, afi_t, safi_t, int *); extern int bgp_config_write_redistribute (struct vty *, struct bgp *, afi_t, safi_t, @@ -39,6 +38,9 @@ extern void bgp_zebra_announce (struct prefix *, struct bgp_info *, struct bgp * extern void bgp_zebra_announce_table (struct bgp *, afi_t, safi_t); extern void bgp_zebra_withdraw (struct prefix *, struct bgp_info *, safi_t); +extern void bgp_zebra_instance_register (struct bgp *); +extern void bgp_zebra_instance_deregister (struct bgp *); + extern struct bgp_redist *bgp_redist_lookup (struct bgp *, afi_t, u_char, u_short); extern struct bgp_redist *bgp_redist_add (struct bgp *, afi_t, u_char, u_short); extern int bgp_redistribute_set (struct bgp *, afi_t, int, u_short); |