summaryrefslogtreecommitdiff
path: root/yang/frr-bgp-route-map.yang
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-08-31 23:00:26 +0300
committerDonatas Abraitis <donatas@opensourcerouting.org>2022-09-04 21:54:47 +0300
commit324e8b1f79ccd00f75cdb8ba95ba0c0ee5e82b4d (patch)
tree8bdf9184e44c469d672a0e2864fa7ae931f05b40 /yang/frr-bgp-route-map.yang
parent7b27cf7bbdf24521ddb780298d998a167226c684 (diff)
bgpd: Handle Origin Validation State extended community via route-map match
Add an ability to match via route-maps. An additional route-map command `match rpki-extcommunity <invalid|notfound|valid>` added. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'yang/frr-bgp-route-map.yang')
-rw-r--r--yang/frr-bgp-route-map.yang29
1 files changed, 29 insertions, 0 deletions
diff --git a/yang/frr-bgp-route-map.yang b/yang/frr-bgp-route-map.yang
index eaa7891f0c..84d5b74ddc 100644
--- a/yang/frr-bgp-route-map.yang
+++ b/yang/frr-bgp-route-map.yang
@@ -66,6 +66,12 @@ module frr-bgp-route-map {
"Control rpki specific settings";
}
+ identity rpki-extcommunity {
+ base frr-route-map:rmap-match-type;
+ description
+ "Control rpki specific settings derived from extended community";
+ }
+
identity probability {
base frr-route-map:rmap-match-type;
description
@@ -430,6 +436,29 @@ module frr-bgp-route-map {
}
}
+ case rpki-extcommunity {
+ 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:rpki-extcommunity')";
+ leaf rpki-extcommunity {
+ type enumeration {
+ enum "valid" {
+ value 0;
+ description
+ "Valid prefix";
+ }
+ enum "notfound" {
+ value 1;
+ description
+ "Prefix not found";
+ }
+ enum "invalid" {
+ value 2;
+ description
+ "Invalid prefix";
+ }
+ }
+ }
+ }
+
case probability {
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:probability')";
leaf probability {