From: Vishal Thapar Date: Thu, 24 Dec 2015 09:53:05 +0000 (+0530) Subject: Fix hwvtep.yang X-Git-Tag: release/beryllium~86 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;ds=sidebyside;h=42cd6371da33c0fdd5ba26e2d84915836abd4562;p=ovsdb.git Fix hwvtep.yang 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 --- diff --git a/hwvtepsouthbound/hwvtepsouthbound-api/src/main/yang/hwvtep.yang b/hwvtepsouthbound/hwvtepsouthbound-api/src/main/yang/hwvtep.yang index 0f899f058..8261124b5 100644 --- a/hwvtepsouthbound/hwvtepsouthbound-api/src/main/yang/hwvtep.yang +++ b/hwvtepsouthbound/hwvtepsouthbound-api/src/main/yang/hwvtep.yang @@ -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; + } } }