diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2020-09-09 13:28:47 -0300 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2020-09-09 14:53:26 -0300 |
| commit | add39cde9d316337b2b62a7367dd34d72c15bff9 (patch) | |
| tree | f98d72b30e79465c772eadced83e696192a5efde /yang/frr-route-map.yang | |
| parent | 5ceb842f455a9b5ec738f7f52aad3a33e1ebf67c (diff) | |
lib: fix the "set metric" route-map command
The "set metric" command wasn't processing metric additions and
subtractions (using + and -) correctly. Fix those problems.
Also, remove the "+metric" and "-metric" options since they don't
work and don't make any sense (they could be interpreted as unitary
increments/decrements but that was never supported).
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'yang/frr-route-map.yang')
| -rw-r--r-- | yang/frr-route-map.yang | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/yang/frr-route-map.yang b/yang/frr-route-map.yang index b895cd12a4..70a6f4470c 100644 --- a/yang/frr-route-map.yang +++ b/yang/frr-route-map.yang @@ -373,15 +373,19 @@ module frr-route-map { case add-metric { leaf add-metric { - description "Add unit to metric."; - type boolean; + description "Add value to metric."; + type uint32 { + range "0..4294967295"; + } } } case subtract-metric { leaf subtract-metric { - description "Subtract unit from metric."; - type boolean; + description "Subtract value from metric."; + type uint32 { + range "0..4294967295"; + } } } |
