diff options
author | Trey Aspelund <taspelund@nvidia.com> | 2021-04-01 03:10:12 +0200 |
---|---|---|
committer | Trey Aspelund <taspelund@nvidia.com> | 2021-04-01 03:36:02 +0200 |
commit | 4ad4ae649281f487453ae5de90145d09b114dffb (patch) | |
tree | 0d84ddc36c3dfdea6b1ee39c3986e7c2086a1b05 | |
parent | doc: Add Displaying Routes by RD section (diff) | |
download | frr-4ad4ae649281f487453ae5de90145d09b114dffb.tar.xz frr-4ad4ae649281f487453ae5de90145d09b114dffb.zip |
bgpd: fix old vpn command compilation failures
set_vpn_nexthop/no_set_vpn_nexthop were failing due to missing
declarations and unused variables.
This adds the missing declaration and removes unused variables.
Signed-off-by: Trey Aspelund <taspelund@nvidia.com>
-rw-r--r-- | bgpd/bgp_route.c | 3 | ||||
-rw-r--r-- | bgpd/bgp_routemap.c | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 299e7cf82..35a931622 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -13060,7 +13060,8 @@ DEFUN (show_ip_bgp_vpn_all_route_prefix, } return bgp_show_route(vty, bgp, network, AFI_IP, SAFI_MPLS_VPN, NULL, 0, - BGP_PATH_SHOW_ALL, use_json(argc, argv)); + BGP_PATH_SHOW_ALL, RPKI_NOT_BEING_USED, + use_json(argc, argv)); } #endif /* KEEP_OLD_VPN_COMMANDS */ diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c index a43b76da7..7692bb7ff 100644 --- a/bgpd/bgp_routemap.c +++ b/bgpd/bgp_routemap.c @@ -5865,6 +5865,7 @@ DEFUN_YANG (set_vpn_nexthop, int idx_ip = 3; afi_t afi; int idx = 0; + char xpath_value[XPATH_MAXLEN]; if (argv_find_and_parse_vpnvx(argv, argc, &idx, &afi)) { if (afi == AFI_IP) { @@ -5908,8 +5909,6 @@ DEFUN_YANG (no_set_vpn_nexthop, "VPN next-hop address\n" "IPv6 address of next hop\n") { - int idx_ip = 4; - char *arg; afi_t afi; int idx = 0; |