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 --- yang/frr-bgp-route-map.yang | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'yang') diff --git a/yang/frr-bgp-route-map.yang b/yang/frr-bgp-route-map.yang index e11883a80..9bd26043a 100644 --- a/yang/frr-bgp-route-map.yang +++ b/yang/frr-bgp-route-map.yang @@ -168,6 +168,12 @@ module frr-bgp-route-map { "Set BGP administrative distance to use"; } + identity set-extcommunity-none { + base frr-route-map:rmap-set-type; + description + "Set BGP extended community attribute"; + } + identity set-extcommunity-rt { base frr-route-map:rmap-set-type; description @@ -585,6 +591,16 @@ module frr-bgp-route-map { } } + case extcommunity-none { + when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:set-extcommunity-none')"; + description + "Value of the BGP extended community attribute"; + leaf extcommunity-none { + type boolean; + description "No extended community attribute"; + } + } + case extcommunity-rt { when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'frr-bgp-route-map:set-extcommunity-rt')"; description -- cgit v1.2.3