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 From f8978cc871c2b6d089d9749e5a346bfc5ae57796 Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Mon, 23 Mar 2020 10:38:34 -0300 Subject: yang: zebra route map fixes based on feedback Fix copy & paste on YANG description and add new route types that appeared. Signed-off-by: Rafael Zalamena --- yang/frr-route-map.yang | 4 ++-- yang/frr-route-types.yang | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'yang/frr-route-map.yang') diff --git a/yang/frr-route-map.yang b/yang/frr-route-map.yang index dd8ce5e6f..dc3c9f939 100644 --- a/yang/frr-route-map.yang +++ b/yang/frr-route-map.yang @@ -193,11 +193,11 @@ module frr-route-map { value 102; } enum source-protocol { - description "Match prefix length"; + description "Match source protocol"; value 103; } enum source-instance { - description "Match prefix length"; + description "Match source protocol instance"; value 104; } } diff --git a/yang/frr-route-types.yang b/yang/frr-route-types.yang index 8637d6b2f..5e2ed9641 100644 --- a/yang/frr-route-types.yang +++ b/yang/frr-route-types.yang @@ -191,6 +191,18 @@ module frr-route-types { description "Routes installed by VNC directly (non-frr)"; value 18; } + enum vnc-direct-rh { + description "Routes installed by VNC via BGP (resolve NVE mode)"; + value 19; + } + enum bgp-direct { + description "Routes installed by BGP to VNC."; + value 20; + } + enum bgp-direct-ext { + description "Routes installed by BGP to VNC VNE groups"; + value 21; + } enum babel { description "Routes installed by babel protocol"; value 22; -- cgit v1.2.3