summaryrefslogtreecommitdiffstats
path: root/networking-odl/networking_odl
diff options
context:
space:
mode:
authorjuraj.linkes <jlinkes@cisco.com>2016-11-15 13:01:24 +0100
committerjuraj.linkes <jlinkes@cisco.com>2016-11-15 13:01:24 +0100
commit439106f86a5c9f3a06ca1bbbd1068006658c156a (patch)
tree478a1b1d6fe31bb7f70967ecc20a97fa698ca522 /networking-odl/networking_odl
parentbbace7a732cbe9ffbc0786502b11434170bf6ebf (diff)
updated vhost user patch with netconf-node-topology yang model update
Change-Id: Ib07a2ad07c23e5d19c98dba4bd0136797b796fbf Signed-off-by: juraj.linkes <jlinkes@cisco.com>
Diffstat (limited to 'networking-odl/networking_odl')
-rw-r--r--networking-odl/networking_odl/ml2/vpp_topology.py19
1 files changed, 16 insertions, 3 deletions
diff --git a/networking-odl/networking_odl/ml2/vpp_topology.py b/networking-odl/networking_odl/ml2/vpp_topology.py
index c16399d..d680551 100644
--- a/networking-odl/networking_odl/ml2/vpp_topology.py
+++ b/networking-odl/networking_odl/ml2/vpp_topology.py
@@ -44,8 +44,21 @@ class VppNetworkTopologyParser(network_topology.NetworkTopologyParser):
# expected :
# "node-id": "name",
# "netconf-node-topology:host": "172.21.174.41"
- # "netconf-node-topology:available-capabilities": {
- # "available-capability" : contains the v3po model
+ # "netconf-node-topology:available-capabilities"
+ # ^^
+ # container available-capabilities {
+ # config false;
+ # leaf capability {
+ # type string;
+ # }
+ # leaf capability-origin {
+ # type enumeration {
+ # enum user-defined;
+ # enum device-advertised;
+ # }
+ # }
+ # }
+ # }
node_name = node['node-id']
LOG.debug("Examining capabilities for node: %s\n",
node_name)
@@ -55,7 +68,7 @@ class VppNetworkTopologyParser(network_topology.NetworkTopologyParser):
LOG.debug("Node's capabilities: %s\n",
capabilities)
for item in capabilities['available-capability']:
- if HC_VPP_CAPABILITY in item:
+ if HC_VPP_CAPABILITY in item['capability']:
LOG.debug("Found VPP matching capability for "
"node: %s\n", node_name)
element = elements_by_name.get(node_name)