summaryrefslogtreecommitdiff
path: root/lib/routemap_cli.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2022-04-26 08:38:58 -0400
committerGitHub <noreply@github.com>2022-04-26 08:38:58 -0400
commit13f52753d4714a4658863d2c0c17b300356f8a58 (patch)
tree54aea109a49ce61061d7e94b17caf0c89f31c363 /lib/routemap_cli.c
parent40a7fcf6acb60829ecf58edc38a168e54323108e (diff)
parent77e3d82167b97a1ff4abe59d6e4f12086a61d9f9 (diff)
Merge pull request #11086 from ton31337/feature/rmap_aspath_replace
bgpd: Add `set as-path replace <any|ASN>` cmd for route-maps
Diffstat (limited to 'lib/routemap_cli.c')
-rw-r--r--lib/routemap_cli.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/routemap_cli.c b/lib/routemap_cli.c
index 315007be1c..ff98a14c41 100644
--- a/lib/routemap_cli.c
+++ b/lib/routemap_cli.c
@@ -1197,6 +1197,11 @@ void route_map_action_show(struct vty *vty, const struct lyd_node *dnode,
yang_dnode_get_string(
dnode,
"./rmap-set-action/frr-bgp-route-map:exclude-as-path"));
+ } else if (IS_SET_AS_REPLACE(action)) {
+ vty_out(vty, " set as-path replace %s\n",
+ yang_dnode_get_string(
+ dnode,
+ "./rmap-set-action/frr-bgp-route-map:replace-as-path"));
} else if (IS_SET_AS_PREPEND(action)) {
if (yang_dnode_exists(
dnode,