diff options
author | Quentin Young <qlyoung@users.noreply.github.com> | 2020-03-31 20:21:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-31 20:21:20 +0200 |
commit | e0bf2057b4512c5015cfe5d62a8d0dff39334eea (patch) | |
tree | c0559b29d34a97cf767fca3454b29f8bff581ff1 /yang/frr-route-map.yang | |
parent | Merge pull request #5967 from rubenk/build-enable-wundef (diff) | |
parent | yang: unionize IPv4/IPv6 route types (diff) | |
download | frr-e0bf2057b4512c5015cfe5d62a8d0dff39334eea.tar.xz frr-e0bf2057b4512c5015cfe5d62a8d0dff39334eea.zip |
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.yang | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/yang/frr-route-map.yang b/yang/frr-route-map.yang index 6e6a193c2..eea29733a 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; } } |