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 /bgpd/bgp_routemap.c | |
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>
Diffstat (limited to '')
-rw-r--r-- | bgpd/bgp_routemap.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |