yang chages for : Faster DC-GW Failure Detection (L3VPN with BGP) 50/68450/9
authorSiva Kumar Perumalla <sivakumar.perumalla@gmail.com>
Wed, 21 Feb 2018 11:25:15 +0000 (16:55 +0530)
committerSam Hague <shague@redhat.com>
Sat, 24 Feb 2018 02:56:57 +0000 (02:56 +0000)
Change-Id: I8f9c752ebcb48f0edbfa11ad2549a9bf6b7bfacc
Signed-off-by: Siva Kumar Perumalla <sivakumar.perumalla@gmail.com>
model-bgp/src/main/yang/ebgp-bfd.yang [new file with mode: 0644]
model-bgp/src/main/yang/ebgp.yang

diff --git a/model-bgp/src/main/yang/ebgp-bfd.yang b/model-bgp/src/main/yang/ebgp-bfd.yang
new file mode 100644 (file)
index 0000000..9ba3cdb
--- /dev/null
@@ -0,0 +1,69 @@
+module bfd {
+
+    yang-version "1";
+    namespace "urn:ericsson:params:xml:ns:yang:ebfd";
+    prefix "ericsson-bfd";
+    organization
+        "Ericsson Bangalore";
+    contact
+        "Ericsson Bangalore";
+    description
+        "BFD configuration model for monitoring DC-Gwy control path,
+         Ericsson's implementation of Opendaylight inter-DC communication";
+    revision "2019-02-19" {
+    }
+
+    container monitoring {
+        config        "true";
+
+        leaf detect-mult {
+            type        uint32;
+            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;
+            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;
+            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";
+        }
+
+        leaf multihop {
+            type        boolean;
+            default     true;
+            description "Value of True indicates suppport for BFD multihop";
+            config      "true";
+        }
+    }
+}
+
index c1d16a56dcd87ac919f5a98a67edf74bef8f1b5e..3ee42b2e0f2335844d82314cabe55243deeb1e37 100644 (file)
@@ -84,6 +84,16 @@ module ebgp {
     leaf announce-fbit {
       type boolean;
     }
+    leaf keepalive {
+        type         uint32;
+        description  "BGP keepalive timer value";
+        default      60;
+    }
+    leaf holdtime {
+        type         uint32;
+        description  "BGP hold time value";
+        default      180;
+    }
   }
 
   container graceful-restart {
@@ -102,7 +112,7 @@ module ebgp {
     }
   }
 
-  list neighbors { 
+  list neighbors {
     key "address";
     leaf address {
       type inet:ipv4-address;
@@ -392,7 +402,25 @@ module ebgp {
        leaf maxpaths {
          type uint16;
        }
-    } //vrfMaxpaths
+  } //vrfMaxpaths
+
+  container bfd {
+      leaf bfd-enabled {
+          description  "is BFD enabled";
+          type         boolean;
+          default      false;
+      }
+  }
 
+  list tep-dcgw {
+      key          "dc-gw-ip";
+      description  "mapping: DC-Gwy ip <> TEP ip";
+      leaf dc-gw-ip {
+           type string;
+      }
+      leaf tep-ip {
+          type string;
+      }
+  }
  } // bgp
 }