diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-07-11 21:42:11 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-07-11 21:42:11 +0200 |
commit | a13c883e6703bf77445cacda125c1a3faaeef389 (patch) | |
tree | d9e5e156ea0f3ce20cfff9023b2dac4c36aded0f /bgpd | |
parent | Merge pull request #795 from opensourcerouting/build-fix-openbsd-tree-path (diff) | |
download | frr-a13c883e6703bf77445cacda125c1a3faaeef389.tar.xz frr-a13c883e6703bf77445cacda125c1a3faaeef389.zip |
bgpd: fix old-style vpn commands
Remove:
-------
* set vpnv4 next-hop X:X::X:X
* set vpnv6 next-hop A.B.C.D
* no set vpn next-hop <A.B.C.D|X:X::X:X>
Add:
----
* no set vpnv4 next-hop A.B.C.D
* no set vpnv6 next-hop X:X::X:X
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgp_routemap.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c index f2c94371a..25dbf2c48 100644 --- a/bgpd/bgp_routemap.c +++ b/bgpd/bgp_routemap.c @@ -4400,12 +4400,13 @@ DEFUN (no_set_ipv6_nexthop_global, #ifdef KEEP_OLD_VPN_COMMANDS DEFUN (set_vpn_nexthop, set_vpn_nexthop_cmd, - "set <vpnv4|vpnv6> next-hop <A.B.C.D|X:X::X:X>", + "set <vpnv4 next-hop A.B.C.D|vpnv6 next-hop X:X::X:X>", SET_STR "VPNv4 information\n" - "VPNv6 information\n" "VPN next-hop address\n" "IP address of next hop\n" + "VPNv6 information\n" + "VPN next-hop address\n" "IPv6 address of next hop\n") { int idx_ip = 3; @@ -4426,12 +4427,14 @@ DEFUN (set_vpn_nexthop, DEFUN (no_set_vpn_nexthop, no_set_vpn_nexthop_cmd, - "no set vpn next-hop <A.B.C.D|X:X::X:X>", + "no set <vpnv4 next-hop A.B.C.D|vpnv6 next-hop X:X::X:X>", NO_STR SET_STR - "VPN information\n" + "VPNv4 information\n" "VPN next-hop address\n" "IP address of next hop\n" + "VPNv6 information\n" + "VPN next-hop address\n" "IPv6 address of next hop\n") { int idx_ip = 4; |