From bb4dcdd13e08a394262e14599278d5c11d7fb197 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Mon, 2 Aug 2021 22:27:55 +0300 Subject: bgpd: Add an ability to set extcommunity to none in route-maps Signed-off-by: Donatas Abraitis --- lib/routemap_cli.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/routemap_cli.c') 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( -- cgit v1.2.3