summaryrefslogtreecommitdiff
path: root/yang/frr-route-map.yang
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-09-19 08:06:36 -0400
committerGitHub <noreply@github.com>2020-09-19 08:06:36 -0400
commit0b8125588ae674a146bcd58e893a60111ceef59e (patch)
treeb2b14071ad8c97a2fa20ec28d58ae898cf37d5c6 /yang/frr-route-map.yang
parentdfc51e66bf365b435caece197f11a0f24e997587 (diff)
parentf6bcffb6232a8e055f2cc4012ffe762e5d18c457 (diff)
Merge pull request #7069 from opensourcerouting/fix-set-metric
lib: fix the "set metric" route-map command
Diffstat (limited to 'yang/frr-route-map.yang')
-rw-r--r--yang/frr-route-map.yang12
1 files changed, 8 insertions, 4 deletions
diff --git a/yang/frr-route-map.yang b/yang/frr-route-map.yang
index c9d35938cb..b22a96a740 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";
+ }
}
}