summaryrefslogtreecommitdiff
path: root/lib/routemap_cli.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2021-08-02 22:27:55 +0300
committerDonatas Abraitis <donatas.abraitis@gmail.com>2021-08-18 14:14:52 +0300
commitbb4dcdd13e08a394262e14599278d5c11d7fb197 (patch)
treeda09a043fc17083ee1eb3f1ba3e62bc5f6d7b40b /lib/routemap_cli.c
parent2f2372ce9eaf7da58e75c0c6011b9d0a771cf090 (diff)
bgpd: Add an ability to set extcommunity to none in route-maps
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
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 77455d991a..b9939c34c5 100644
--- a/lib/routemap_cli.c
+++ b/lib/routemap_cli.c
@@ -1223,6 +1223,11 @@ void route_map_action_show(struct vty *vty, struct lyd_node *dnode,
strlcat(str, " non-transitive", sizeof(str));
vty_out(vty, " set extcommunity bandwidth %s\n", str);
+ } else if (IS_SET_EXTCOMMUNITY_NONE(action)) {
+ if (yang_dnode_get_bool(
+ dnode,
+ "./rmap-set-action/frr-bgp-route-map:extcommunity-none"))
+ vty_out(vty, " set extcommunity none\n");
} else if (IS_SET_AGGREGATOR(action)) {
vty_out(vty, " set aggregator as %s %s\n",
yang_dnode_get_string(