diff options
| author | Russ White <russ@riw.us> | 2024-10-16 07:51:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-16 07:51:20 -0400 |
| commit | 80dc863d92606794e1ef9960b2bdac68695d7f3e (patch) | |
| tree | b1ca66707949519d6f9cc1c0af1480812a60fd94 /lib/routemap_cli.c | |
| parent | 40dce0be6a8f1cad15fce434177b48f9e69b96dd (diff) | |
| parent | 6e4bee2d33b25c007f4a244e47feafc39194fd73 (diff) | |
Merge pull request #16946 from opensourcerouting/fix/match_src-peer
bgpd: Implement match src-peer ... command
Diffstat (limited to 'lib/routemap_cli.c')
| -rw-r--r-- | lib/routemap_cli.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/routemap_cli.c b/lib/routemap_cli.c index 432805c8d5..69b942064b 100644 --- a/lib/routemap_cli.c +++ b/lib/routemap_cli.c @@ -756,6 +756,18 @@ void route_map_condition_show(struct vty *vty, const struct lyd_node *dnode, acl = "local"; vty_out(vty, " match peer %s\n", acl); + } else if (IS_MATCH_SRC_PEER(condition)) { + acl = NULL; + ln = yang_dnode_get(dnode, + "./rmap-match-condition/frr-bgp-route-map:src-peer-ipv4-address"); + if (!ln) + ln = yang_dnode_get(dnode, + "./rmap-match-condition/frr-bgp-route-map:src-peer-ipv6-address"); + if (!ln) + ln = yang_dnode_get(dnode, + "./rmap-match-condition/frr-bgp-route-map:src-peer-interface"); + acl = yang_dnode_get_string(ln, NULL); + vty_out(vty, " match src-peer %s\n", acl); } else if (IS_MATCH_AS_LIST(condition)) { vty_out(vty, " match as-path %s\n", yang_dnode_get_string( |
