summaryrefslogtreecommitdiff
path: root/yang/frr-route-map.yang
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2020-03-31 14:21:20 -0400
committerGitHub <noreply@github.com>2020-03-31 14:21:20 -0400
commite0bf2057b4512c5015cfe5d62a8d0dff39334eea (patch)
treec0559b29d34a97cf767fca3454b29f8bff581ff1 /yang/frr-route-map.yang
parent6f00dd6658acd0dc04f6c65e28452c2de93c99d5 (diff)
parent2c3e1f1f38033a3b9e58f49f052f693fa1c2f638 (diff)
Merge pull request #5183 from opensourcerouting/zebra-route-map-nb
yang/zebra: migrate route map to northbound
Diffstat (limited to 'yang/frr-route-map.yang')
-rw-r--r--yang/frr-route-map.yang40
1 files changed, 22 insertions, 18 deletions
diff --git a/yang/frr-route-map.yang b/yang/frr-route-map.yang
index 6e6a193c28..eea29733a3 100644
--- a/yang/frr-route-map.yang
+++ b/yang/frr-route-map.yang
@@ -179,17 +179,27 @@ module frr-route-map {
description "Match a route tag";
value 10;
}
-
- /*
- * Protocol YANG models should augment the parent node to
- * contain the routing protocol specific value. The protocol
- * must also augment `condition-value` to include its specific
- * values or expand the `when` statement on the existing cases.
- */
- enum routing-protocol-specific {
- description "Match a routing protocol specific type";
+ /* zebra specific conditions. */
+ enum ipv4-prefix-length {
+ description "Match IPv4 prefix length";
value 100;
}
+ enum ipv6-prefix-length {
+ description "Match IPv6 prefix length";
+ value 101;
+ }
+ enum ipv4-next-hop-prefix-length {
+ description "Match next-hop prefix length";
+ value 102;
+ }
+ enum source-protocol {
+ description "Match source protocol";
+ value 103;
+ }
+ enum source-instance {
+ description "Match source protocol instance";
+ value 104;
+ }
}
}
@@ -291,15 +301,9 @@ module frr-route-map {
description "Set tag";
value 3;
}
-
- /*
- * Protocol YANG models should augment the parent node to
- * contain the routing protocol specific value. The protocol
- * must also augment `action-value` to include its specific
- * values or expand the `when` statement on the existing cases.
- */
- enum routing-protocol-specific {
- description "Set a routing protocol specific action";
+ /* zebra specific conditions. */
+ enum source {
+ description "Set source address for route";
value 100;
}
}