From 439106f86a5c9f3a06ca1bbbd1068006658c156a Mon Sep 17 00:00:00 2001 From: "juraj.linkes" Date: Tue, 15 Nov 2016 13:01:24 +0100 Subject: updated vhost user patch with netconf-node-topology yang model update Change-Id: Ib07a2ad07c23e5d19c98dba4bd0136797b796fbf Signed-off-by: juraj.linkes --- networking-odl/networking_odl/ml2/vpp_topology.py | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'networking-odl') 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) -- cgit 1.2.3-korg