summaryrefslogtreecommitdiffstats
path: root/yang/frr-bgp-route-map.yang
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2021-07-18 11:14:24 +0200
committerDonatas Abraitis <donatas.abraitis@gmail.com>2021-07-21 08:26:14 +0200
commit2690f18cc85fd3e93bb4aa7330643ea8f7f30267 (patch)
treedf8d7a0b41bca9e6462984ed63a0408826207fef /yang/frr-bgp-route-map.yang
parentMerge pull request #9098 from donaldsharp/if_secondary_bsd (diff)
downloadfrr-2690f18cc85fd3e93bb4aa7330643ea8f7f30267.tar.xz
frr-2690f18cc85fd3e93bb4aa7330643ea8f7f30267.zip
bgpd: Add route-map `match alias` command
Will be handy to filter BGP prefixes by using BGP community alias instead of numerical community values. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'yang/frr-bgp-route-map.yang')
-rw-r--r--yang/frr-bgp-route-map.yang15
1 files changed, 14 insertions, 1 deletions
diff --git a/yang/frr-bgp-route-map.yang b/yang/frr-bgp-route-map.yang
index 1c990b5ed..e11883a80 100644
--- a/yang/frr-bgp-route-map.yang
+++ b/yang/frr-bgp-route-map.yang
@@ -36,6 +36,12 @@ module frr-bgp-route-map {
"Initial revision";
}
+ identity match-alias {
+ base frr-route-map:rmap-match-type;
+ description
+ "Match BGP community alias name";
+ }
+
identity match-local-preference {
base frr-route-map:rmap-match-type;
description
@@ -352,7 +358,14 @@ module frr-bgp-route-map {
}
}
- case script {
+ case alias {
+ when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:match-alias')";
+ leaf alias {
+ type string;
+ }
+ }
+
+ case script {
when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:match-condition/frr-route-map:condition, 'frr-bgp-route-map:match-script')";
leaf script {
type string;