diff options
| author | Quentin Young <qlyoung@users.noreply.github.com> | 2019-04-29 12:56:50 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-29 12:56:50 -0400 |
| commit | 9f2e8391c55fed32ae8e0840eb73d068a134613f (patch) | |
| tree | 48241ca84afde991e22048f8f44800fbdefc1070 | |
| parent | 78715366ef74a959df8ee8142faaf371cebf5b4e (diff) | |
| parent | 19c2c53363498c57960a5c128303766f18f1f5af (diff) | |
Merge pull request #4212 from ton31337/feature/all_alias_for_force_next_self_host_7.0
bgpd: [7.0] Make sure `next-hop-self all` backward compatible with force
| -rw-r--r-- | bgpd/bgp_vty.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 0e48b30d05..7445df8830 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -3933,6 +3933,13 @@ ALIAS_HIDDEN(neighbor_nexthop_self_force, "Disable the next hop calculation for this neighbor\n" "Set the next hop to self for reflected routes\n") +ALIAS_HIDDEN(neighbor_nexthop_self_force, + neighbor_nexthop_self_all_hidden_cmd, + "neighbor <A.B.C.D|X:X::X:X|WORD> next-hop-self all", + NEIGHBOR_STR NEIGHBOR_ADDR_STR2 + "Disable the next hop calculation for this neighbor\n" + "Set the next hop to self for reflected routes\n") + DEFUN (no_neighbor_nexthop_self, no_neighbor_nexthop_self_cmd, "no neighbor <A.B.C.D|X:X::X:X|WORD> next-hop-self", @@ -3974,6 +3981,13 @@ ALIAS_HIDDEN(no_neighbor_nexthop_self_force, "Disable the next hop calculation for this neighbor\n" "Set the next hop to self for reflected routes\n") +ALIAS_HIDDEN(no_neighbor_nexthop_self_force, + no_neighbor_nexthop_self_all_hidden_cmd, + "no neighbor <A.B.C.D|X:X::X:X|WORD> next-hop-self all", + NO_STR NEIGHBOR_STR NEIGHBOR_ADDR_STR2 + "Disable the next hop calculation for this neighbor\n" + "Set the next hop to self for reflected routes\n") + /* neighbor as-override */ DEFUN (neighbor_as_override, neighbor_as_override_cmd, @@ -13117,6 +13131,8 @@ void bgp_vty_init(void) /* "neighbor next-hop-self force" commands. */ install_element(BGP_NODE, &neighbor_nexthop_self_force_hidden_cmd); install_element(BGP_NODE, &no_neighbor_nexthop_self_force_hidden_cmd); + install_element(BGP_NODE, &neighbor_nexthop_self_all_hidden_cmd); + install_element(BGP_NODE, &no_neighbor_nexthop_self_all_hidden_cmd); install_element(BGP_IPV4_NODE, &neighbor_nexthop_self_force_cmd); install_element(BGP_IPV4_NODE, &no_neighbor_nexthop_self_force_cmd); install_element(BGP_IPV4M_NODE, &neighbor_nexthop_self_force_cmd); |
