summaryrefslogtreecommitdiff
path: root/yang/frr-route-map.yang
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2023-04-05 23:55:13 -0500
committerJafar Al-Gharaibeh <jafar@atcorp.com>2023-04-18 00:48:16 -0500
commit055355e10432fcbf37038f3116ef7ac388013b3b (patch)
tree1b61db7f6ec0cb489d37aad4a7d4975253ed164b /yang/frr-route-map.yang
parent6af89f8f033b61217322ca1e8fca324f813a1ef5 (diff)
lib, ospfd, yang: add route map set for min/max metric
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
Diffstat (limited to 'yang/frr-route-map.yang')
-rw-r--r--yang/frr-route-map.yang45
1 files changed, 45 insertions, 0 deletions
diff --git a/yang/frr-route-map.yang b/yang/frr-route-map.yang
index 224b2caef7..7cb13b60f2 100644
--- a/yang/frr-route-map.yang
+++ b/yang/frr-route-map.yang
@@ -160,6 +160,18 @@ module frr-route-map {
"Set prefix/route metric";
}
+ identity set-min-metric {
+ base rmap-set-type;
+ description
+ "Set minimum prefix/route metric";
+ }
+
+ identity set-max-metric {
+ base rmap-set-type;
+ description
+ "Set maximum prefix/route metric";
+ }
+
identity set-tag {
base rmap-set-type;
description
@@ -346,6 +358,39 @@ module frr-route-map {
}
}
+ case set-min-metric {
+ when "derived-from-or-self(../action, 'set-min-metric')";
+ choice minimun-metric-value {
+ description
+ "Mimimum metric to set or use";
+ case min-metric {
+ leaf min-metric {
+ type uint32 {
+ range "0..4294967295";
+ }
+ description
+ "Use the following mimumn metric value";
+ }
+ }
+ }
+ }
+
+ case set-max-metric {
+ when "derived-from-or-self(../action, 'set-max-metric')";
+ choice maximum-metric-value {
+ description
+ "Maximum metric to set or use";
+ case max-metric {
+ leaf max-metric {
+ type uint32 {
+ range "0..4294967295";
+ }
+ description
+ "Use the following maximum metric value";
+ }
+ }
+ }
+ }
case set-tag {
when "derived-from-or-self(../action, 'set-tag')";
leaf tag {