Fix hwvtep.yang 64/31864/1
authorVishal Thapar <vishal.thapar@ericsson.com>
Thu, 24 Dec 2015 09:53:05 +0000 (15:23 +0530)
committerVishal Thapar <vishal.thapar@ericsson.com>
Thu, 24 Dec 2015 09:53:05 +0000 (15:23 +0530)
BFD configuration and parameters are defined as string. This is incorrect
and makes it difficult to use BFD cofigs and params. This fix creates
them as lists of key:value pairs of type string:string.

Change-Id: I8af37e443cc04d3665ef4c70824b02d71c14b9b5
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
hwvtepsouthbound/hwvtepsouthbound-api/src/main/yang/hwvtep.yang

index 0f899f058bce5a45a2c49cd2d3e0755d50edffca..8261124b58531dbc60ed8c1d3aa8d04948d13d3f 100644 (file)
@@ -93,14 +93,44 @@ module hwvtep {
             description "Reference to the physical locator to reach this entry";
             type hwvtep-physical-locator-ref;
         }
-        leaf bfd-config-local {
-            type string;
+        list bfd-local-configs {
+            description "Local configuation attributes for BFD";
+
+            key "bfd-local-config-key";
+            leaf bfd-local-config-key {
+                description "bfd-local-config name/key";
+                type string;
+            }
+            leaf bfd-local-config-value {
+                description "bfd-local-config value";
+                type string;
+            }
         }
-        leaf bfd-config-remote {
-            type string;
+        list bfd-remote-configs {
+            description "Remote configuration attributes for BFD";
+
+            key "bfd-remote-config-key";
+            leaf bfd-remote-config-key {
+                description "bfd-remote-config name/key";
+                type string;
+            }
+            leaf bfd-remote-config-value {
+                description "bfd-remote-config value";
+                type string;
+            }
         }
-        leaf bfd-params {
-            type string;
+        list bfd-params {
+            description "Parameters to configure and enable BFD";
+
+            key "bfd-param-key";
+            leaf bfd-param-key {
+                description "bfd-param name/key";
+                type string;
+            }
+            leaf bfd-param-value {
+                description "bfd-param value";
+                type string;
+            }
         }
     }