diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2023-05-11 09:38:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-11 09:38:57 -0400 |
| commit | 4ce530f750d08674029627be5e2e8c55026c5663 (patch) | |
| tree | 334491e023e18fe4146d61e5f47df65089385b8d /lib/routemap_cli.c | |
| parent | bc05bccbdcdfdad54fc66ddd0681843edbd564c1 (diff) | |
| parent | 9c3ffc80db2ef0445ab6d8dabf6b5f696cbd0470 (diff) | |
Merge pull request #13507 from opensourcerouting/feature/bgp_route-map_match_source-protocol
bgpd: Implement match source-protocol for route-maps
Diffstat (limited to 'lib/routemap_cli.c')
| -rw-r--r-- | lib/routemap_cli.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/routemap_cli.c b/lib/routemap_cli.c index 419086c4c6..0ccc78e838 100644 --- a/lib/routemap_cli.c +++ b/lib/routemap_cli.c @@ -599,11 +599,14 @@ void route_map_condition_show(struct vty *vty, const struct lyd_node *dnode, yang_dnode_get_string( dnode, "./rmap-match-condition/frr-zebra-route-map:ipv4-prefix-length")); - } else if (IS_MATCH_SRC_PROTO(condition)) { + } else if (IS_MATCH_SRC_PROTO(condition) || + IS_MATCH_BGP_SRC_PROTO(condition)) { vty_out(vty, " match source-protocol %s\n", yang_dnode_get_string( dnode, - "./rmap-match-condition/frr-zebra-route-map:source-protocol")); + IS_MATCH_SRC_PROTO(condition) + ? "./rmap-match-condition/frr-zebra-route-map:source-protocol" + : "./rmap-match-condition/frr-bgp-route-map:source-protocol")); } else if (IS_MATCH_SRC_INSTANCE(condition)) { vty_out(vty, " match source-instance %s\n", yang_dnode_get_string( |
