]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: fix old vpn command compilation failures 8382/head
authorTrey Aspelund <taspelund@nvidia.com>
Thu, 1 Apr 2021 01:10:12 +0000 (01:10 +0000)
committerTrey Aspelund <taspelund@nvidia.com>
Thu, 1 Apr 2021 01:36:02 +0000 (01:36 +0000)
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>
bgpd/bgp_route.c
bgpd/bgp_routemap.c

index 299e7cf82e5f2070fdc5ff950f00bf93cfc59930..35a93162216884a061bd58564892b4eb480d5cd2 100644 (file)
@@ -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 */
 
index a43b76da72a41679185308b97eff149aabd76645..7692bb7ffefdd394567b309a2be473034811794e 100644 (file)
@@ -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;