providing range values for min-rx, min-tx of BGP-BFD.
[netvirt.git] / model-bgp / src / main / yang / ebgp-bfd.yang
index 9ba3cdbd7fd3462c5a5650833ac4d7bf59dbb963..e004b9ab2b57b72697c2badd7b8631288868efe6 100644 (file)
@@ -13,51 +13,37 @@ module bfd {
     revision "2019-02-19" {
     }
 
-    container monitoring {
+    container bfd-monitoring {
         config        "true";
 
         leaf detect-mult {
             type        uint32;
-            description "The number of packets that have to be missed 
+            default     3;
+            description "The number of packets that have to be missed
                          in a row to declare the session to be down.";
         }
         leaf min-rx {
-            type        uint32;
+            type        uint32 {
+                            range "50..50000";
+            }
             default     500;
             description "The shortest interval, in milli-seconds, at
                          which this BFD session offers to receive
                          BFD control messages. Defaults to 500";
         }
         leaf min-tx {
-            type        uint32;
+            type        uint32 {
+                            range "1000 .. 60000";
+            }
             default     6000;
             description "The shortest interval, in milli-seconds,
                          at which this BFD session is willing to
                          transmit BFD control messages. Defaults
                          to 6000";
         }
-
-        leaf failure-threshold {
-            type         uint32;
-            description  "Number milli-seconds to wait before declaring
-                          session down";
-        }
-
-        leaf success-threshold {
-            type         uint32;
-            description  "Number milli-seconds to wait before declaring
-                          session up";
-        }
     }
 
-    container config {
-        leaf cbit {
-            type        boolean;
-            default     true;
-            description "Value of True indicates control bit SET";
-            config      "true";
-        }
-
+    container bfd-config {
         leaf multihop {
             type        boolean;
             default     true;