summaryrefslogtreecommitdiffstats
path: root/yang/frr-bfdd.yang
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2019-06-12 23:05:19 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2019-06-22 15:10:56 +0200
commit8a676ce6b13eeec581856471d543d92aae2392f6 (patch)
treef41058a1a34c15d27cf374b4805db153302cdad6 /yang/frr-bfdd.yang
parentlib: fix northbound static analyzer warning (diff)
downloadfrr-8a676ce6b13eeec581856471d543d92aae2392f6.tar.xz
frr-8a676ce6b13eeec581856471d543d92aae2392f6.zip
bfdd: use microseconds timers in YANG
Lets allow specification to accept microseconds, but limit the timers configuration in FRR to milliseconds (minimum is 10 ms and maximum is 60 seconds). This matches the RFC 5880 and the IETF BFD YANG draft model. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'yang/frr-bfdd.yang')
-rw-r--r--yang/frr-bfdd.yang18
1 files changed, 9 insertions, 9 deletions
diff --git a/yang/frr-bfdd.yang b/yang/frr-bfdd.yang
index 4fb857e6d..4604f747c 100644
--- a/yang/frr-bfdd.yang
+++ b/yang/frr-bfdd.yang
@@ -128,15 +128,15 @@ module frr-bfdd {
leaf desired-transmission-interval {
type uint32;
- units milliseconds;
- default 300;
+ units microseconds;
+ default 300000;
description "Minimum desired control packet transmission interval";
}
leaf required-receive-interval {
type uint32;
- units milliseconds;
- default 300;
+ units microseconds;
+ default 300000;
description "Minimum required control packet receive interval";
}
@@ -158,8 +158,8 @@ module frr-bfdd {
leaf desired-echo-transmission-interval {
type uint32;
- units milliseconds;
- default 50;
+ units microseconds;
+ default 50000;
description "Minimum desired control packet transmission interval";
}
}
@@ -217,13 +217,13 @@ module frr-bfdd {
leaf negotiated-transmission-interval {
description "Negotiated transmit interval";
type uint32;
- units milliseconds;
+ units microseconds;
}
leaf negotiated-receive-interval {
description "Negotiated receive interval";
type uint32;
- units milliseconds;
+ units microseconds;
}
leaf detection-mode {
@@ -287,7 +287,7 @@ module frr-bfdd {
*/
leaf negotiated-echo-transmission-interval {
type uint32;
- units milliseconds;
+ units microseconds;
description "Negotiated echo transmit interval";
}