diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-11-19 21:11:52 +0300 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-11-19 21:11:52 +0300 |
| commit | 03030106ced5cd7c8784253b489788619087dcf1 (patch) | |
| tree | 9d0223414ed6f8f09fd2f17e65b072256dc686a6 /lib/routemap_cli.c | |
| parent | 41eec96003cb60771105b5105072681e990f7b5c (diff) | |
bgpd, lib: fix inconsistency of match ip/ipv6 next-hop commands
For IPv4 matching, we have "match ip next-hop address A.B.C.D".
For IPv6 matching, we have "match ipv6 next-hop X:X::X:X".
To have consistency, let's add "address" keyword to IPv6 commands.
Old commands are preserved as hidden for backward compatibility.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/routemap_cli.c')
| -rw-r--r-- | lib/routemap_cli.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/routemap_cli.c b/lib/routemap_cli.c index d7d4a9a81f..f85be05f5e 100644 --- a/lib/routemap_cli.c +++ b/lib/routemap_cli.c @@ -791,12 +791,12 @@ void route_map_condition_show(struct vty *vty, const struct lyd_node *dnode, vty_out(vty, " match extcommunity %s\n", acl); } else if (IS_MATCH_IPV4_NH(condition)) { - vty_out(vty, " match ip next-hop %s\n", + vty_out(vty, " match ip next-hop address %s\n", yang_dnode_get_string( dnode, "./rmap-match-condition/frr-bgp-route-map:ipv4-address")); } else if (IS_MATCH_IPV6_NH(condition)) { - vty_out(vty, " match ipv6 next-hop %s\n", + vty_out(vty, " match ipv6 next-hop address %s\n", yang_dnode_get_string( dnode, "./rmap-match-condition/frr-bgp-route-map:ipv6-address")); |
