summaryrefslogtreecommitdiffstats
path: root/yang
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-09-19 14:06:36 +0200
committerGitHub <noreply@github.com>2020-09-19 14:06:36 +0200
commit0b8125588ae674a146bcd58e893a60111ceef59e (patch)
treeb2b14071ad8c97a2fa20ec28d58ae898cf37d5c6 /yang
parentMerge pull request #6814 from gpnaveen/ospf_basic_functionality (diff)
parenttests: Add topotest for BGP metric change (diff)
downloadfrr-0b8125588ae674a146bcd58e893a60111ceef59e.tar.xz
frr-0b8125588ae674a146bcd58e893a60111ceef59e.zip
Merge pull request #7069 from opensourcerouting/fix-set-metric
lib: fix the "set metric" route-map command
Diffstat (limited to '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 c9d35938c..b22a96a74 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";
+ }
}
}