diff options
author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2023-04-06 06:55:13 +0200 |
---|---|---|
committer | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2023-04-18 07:48:16 +0200 |
commit | 055355e10432fcbf37038f3116ef7ac388013b3b (patch) | |
tree | 1b61db7f6ec0cb489d37aad4a7d4975253ed164b /yang | |
parent | ospfd: use rib metric as the base for set metric +/- (diff) | |
download | frr-055355e10432fcbf37038f3116ef7ac388013b3b.tar.xz frr-055355e10432fcbf37038f3116ef7ac388013b3b.zip |
lib, ospfd, yang: add route map set for min/max metric
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
Diffstat (limited to 'yang')
-rw-r--r-- | yang/frr-route-map.yang | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/yang/frr-route-map.yang b/yang/frr-route-map.yang index 224b2caef..7cb13b60f 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 { |