summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_mplsvpn.c
diff options
context:
space:
mode:
authorChirag Shah <chirag@nvidia.com>2020-08-12 22:30:24 +0200
committerChirag Shah <chirag@nvidia.com>2020-10-03 20:25:37 +0200
commitff8a8a7ac10b3211d5586c29dfcc5a3b32841029 (patch)
tree3a6354d31147a423a90c05a6abb3a48fcfde83a5 /bgpd/bgp_mplsvpn.c
parentbgpd: register northbound callbacks to bootstrap (diff)
downloadfrr-ff8a8a7ac10b3211d5586c29dfcc5a3b32841029.tar.xz
frr-ff8a8a7ac10b3211d5586c29dfcc5a3b32841029.zip
bgpd: convert global config to transactional cli
Convert global congigurations clis to transactional clis using northbound plugin callbacks. Signed-off-by: Chirag Shah <chirag@nvidia.com>
Diffstat (limited to 'bgpd/bgp_mplsvpn.c')
-rw-r--r--bgpd/bgp_mplsvpn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_mplsvpn.c b/bgpd/bgp_mplsvpn.c
index 5ef3cf736..b33251635 100644
--- a/bgpd/bgp_mplsvpn.c
+++ b/bgpd/bgp_mplsvpn.c
@@ -2581,7 +2581,7 @@ void vpn_leak_postchange_all(void)
* also VRF Y should unimport its routes from VRF X table.
* This will ensure VPN table is cleaned up appropriately.
*/
-int bgp_vpn_leak_unimport(struct bgp *from_bgp, struct vty *vty)
+void bgp_vpn_leak_unimport(struct bgp *from_bgp)
{
struct bgp *to_bgp;
const char *tmp_name;
@@ -2593,7 +2593,7 @@ int bgp_vpn_leak_unimport(struct bgp *from_bgp, struct vty *vty)
int debug;
if (from_bgp->inst_type != BGP_INSTANCE_TYPE_VRF)
- return 0;
+ return;
debug = (BGP_DEBUG(vpn, VPN_LEAK_TO_VRF) |
BGP_DEBUG(vpn, VPN_LEAK_FROM_VRF));
@@ -2662,7 +2662,7 @@ int bgp_vpn_leak_unimport(struct bgp *from_bgp, struct vty *vty)
}
}
}
- return 0;
+ return;
}
/* When a router bgp is configured, there could be a bgp vrf