summaryrefslogtreecommitdiff
path: root/lib/routemap_cli.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-11-24 19:38:07 +0300
committerGitHub <noreply@github.com>2021-11-24 19:38:07 +0300
commitaf36ea8434c227efea3e130fd72429b73c5f833c (patch)
treee90f5e2b3f2bd739ddd312eee07e55464a3266cb /lib/routemap_cli.c
parent1b5a41b41e7a0e0edddb094a74211d978afa6b43 (diff)
parentc75d6ccbfe95d2708618ade7cc7198e46ee467dd (diff)
Merge pull request #10121 from ton31337/feature/match_ipv6_nexthop_prefixlist
bgpd: Add an ability to match ipv6 next-hop by prefix-list
Diffstat (limited to 'lib/routemap_cli.c')
-rw-r--r--lib/routemap_cli.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/routemap_cli.c b/lib/routemap_cli.c
index 552ba565b4..52fcaaba53 100644
--- a/lib/routemap_cli.c
+++ b/lib/routemap_cli.c
@@ -575,6 +575,10 @@ void route_map_condition_show(struct vty *vty, const struct lyd_node *dnode,
vty_out(vty, " match ip next-hop prefix-list %s\n",
yang_dnode_get_string(
dnode, "./rmap-match-condition/list-name"));
+ } else if (IS_MATCH_IPv6_NEXTHOP_PREFIX_LIST(condition)) {
+ vty_out(vty, " match ipv6 next-hop prefix-list %s\n",
+ yang_dnode_get_string(
+ dnode, "./rmap-match-condition/list-name"));
} else if (IS_MATCH_IPv6_ADDRESS_LIST(condition)) {
vty_out(vty, " match ipv6 address %s\n",
yang_dnode_get_string(