diff options
author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-10-07 22:40:45 +0200 |
---|---|---|
committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2020-03-23 11:55:13 +0100 |
commit | bc77245fa1e4b5ef4da181d575df9d8569b728f8 (patch) | |
tree | 6019a2e1072a3c0885b0977de74127e455c4573b /yang/frr-route-map.yang | |
parent | yang: add all route types enumeration (diff) | |
download | frr-bc77245fa1e4b5ef4da181d575df9d8569b728f8.tar.xz frr-bc77245fa1e4b5ef4da181d575df9d8569b728f8.zip |
yang: add zebra specific route map options
* Extend the route map yang model to have zebra enumerations;
* Add zebra route map specific match/set values;
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'yang/frr-route-map.yang')
-rw-r--r-- | yang/frr-route-map.yang | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/yang/frr-route-map.yang b/yang/frr-route-map.yang index 34a7e28a7..dd8ce5e6f 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 prefix length"; + value 103; + } + enum source-instance { + description "Match prefix length"; + 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; } } |