diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-11-23 16:45:25 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-23 16:45:25 +0300 |
| commit | 4ac61f7a2a6e0c088ff12909e8d130fdcd8d6126 (patch) | |
| tree | b811f6451f4f87e9d058c8ca84947df9ff7be6d7 /lib/routemap_cli.c | |
| parent | 0ecdbedbf95125e358298fd9cc502560a74c0c4a (diff) | |
| parent | 390cde0afc76172c114ec7802f5a70283766682f (diff) | |
Merge pull request #10024 from ton31337/feature/match_ipv6_next-hop_access-list
bgpd: match ipv6 next-hop
Diffstat (limited to 'lib/routemap_cli.c')
| -rw-r--r-- | lib/routemap_cli.c | 5 |
1 files changed, 4 insertions, 1 deletions
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( |
