From bc77245fa1e4b5ef4da181d575df9d8569b728f8 Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Mon, 7 Oct 2019 17:40:45 -0300 Subject: 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 --- yang/frr-route-map.yang | 40 ++++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 18 deletions(-) (limited to 'yang/frr-route-map.yang') 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; } } -- cgit v1.2.3