summaryrefslogtreecommitdiff
path: root/lib/routemap_cli.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-07-31 15:50:16 +0300
committerGitHub <noreply@github.com>2023-07-31 15:50:16 +0300
commitfbedeb958fae765fe719a76d0ea53792512f9044 (patch)
treea6fd232ac66e3aff7eb7e022d4f902dadd23ab42 /lib/routemap_cli.c
parent1aa34e5fb79ed2ccc3bf333d19ac1e1ba972e53f (diff)
parent6e01399077ed05fafad9f3f2073daa8cc7dcf9dd (diff)
Merge pull request #14042 from FRIDM636/extcomm-list-delete
bgp: add set BGP extended community for deletion command
Diffstat (limited to 'lib/routemap_cli.c')
-rw-r--r--lib/routemap_cli.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/routemap_cli.c b/lib/routemap_cli.c
index c1bdd28eab..a5e66880a7 100644
--- a/lib/routemap_cli.c
+++ b/lib/routemap_cli.c
@@ -1186,6 +1186,16 @@ void route_map_action_show(struct vty *vty, const struct lyd_node *dnode,
assert(acl);
vty_out(vty, " set large-comm-list %s delete\n", acl);
+ } else if (IS_SET_EXTCOMM_LIST_DEL(action)) {
+ acl = NULL;
+ ln = yang_dnode_get(dnode, "./rmap-set-action/frr-bgp-route-map:comm-list-name");
+
+ if (ln)
+ acl = yang_dnode_get_string(ln, NULL);
+
+ assert(acl);
+
+ vty_out(vty, " set extended-comm-list %s delete\n", acl);
} else if (IS_SET_LCOMMUNITY(action)) {
if (yang_dnode_exists(
dnode,