From bc63ba980f51642582ffbade6bfdf66bae5cf89d Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Mon, 22 Nov 2021 21:26:33 +0200 Subject: bgpd: Add an ability to match ipv6 next-hop by access-list Signed-off-by: Donatas Abraitis --- lib/routemap_cli.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/routemap_cli.c') diff --git a/lib/routemap_cli.c b/lib/routemap_cli.c index f85be05f5e..e26e3a6d2d 100644 --- a/lib/routemap_cli.c +++ b/lib/routemap_cli.c @@ -551,6 +551,7 @@ void route_map_condition_show(struct vty *vty, const struct lyd_node *dnode, yang_dnode_get_string( dnode, "./rmap-match-condition/interface")); } else if (IS_MATCH_IPv4_ADDRESS_LIST(condition) + || IS_MATCH_IPv6_NEXTHOP_LIST(condition) || IS_MATCH_IPv4_NEXTHOP_LIST(condition)) { acl = NULL; if ((ln = yang_dnode_get(dnode, @@ -562,8 +563,10 @@ void route_map_condition_show(struct vty *vty, const struct lyd_node *dnode, if (IS_MATCH_IPv4_ADDRESS_LIST(condition)) vty_out(vty, " match ip address %s\n", acl); - else + else if (IS_MATCH_IPv4_NEXTHOP_LIST(condition)) vty_out(vty, " match ip next-hop %s\n", acl); + else + vty_out(vty, " match ipv6 next-hop %s\n", acl); } else if (IS_MATCH_IPv4_PREFIX_LIST(condition)) { vty_out(vty, " match ip address prefix-list %s\n", yang_dnode_get_string( -- cgit v1.2.3