From 03030106ced5cd7c8784253b489788619087dcf1 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Fri, 19 Nov 2021 21:11:52 +0300 Subject: 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 --- lib/routemap_cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/routemap_cli.c') 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")); -- cgit v1.2.3