Minor fix for VCA config parameter 65/865/1
authorPhilip Joseph <philip.joseph@riftio.com>
Fri, 30 Dec 2016 06:06:48 +0000 (11:36 +0530)
committerPhilip Joseph <philip.joseph@riftio.com>
Fri, 30 Dec 2016 06:06:48 +0000 (11:36 +0530)
Signed-off-by: Philip Joseph <philip.joseph@riftio.com>
examples/ping_pong_ns/rift/mano/examples/ping_pong_nsd.py
rwcm/plugins/rwconman/rift/tasklets/rwconmantasklet/rwconman_config.py

index 6688c76..eb6add4 100755 (executable)
@@ -163,7 +163,7 @@ class VirtualNetworkFunction(ManoDescriptor):
         src.from_dict({
             "name": "mgmt_ip",
             "description": "Management address",
-            "attribute": "../../../../mgmt-interface, ip-address",
+            "attribute": "../../../mgmt-interface, ip-address",
             "parameter" : get_params("mgmt_ip")
         })
         confparam.config_parameter_source.append(src)
@@ -171,7 +171,7 @@ class VirtualNetworkFunction(ManoDescriptor):
         src.from_dict({
             "name": "mgmt_port",
             "description": "Management port",
-            "descriptor": "../../../../mgmt-interface/port",
+            "descriptor": "../../../mgmt-interface/port",
             "parameter" : get_params("mgmt_port")
         })
         confparam.config_parameter_source.append(src)
@@ -198,7 +198,7 @@ class VirtualNetworkFunction(ManoDescriptor):
             src.from_dict({
                 "name": "service_ip",
                 "description": "IP on which Pong service is listening",
-                "attribute": "../../../../connection-point[name='pong_vnfd/cp0'], ip-address",
+                "attribute": "../../../connection-point[name='pong_vnfd/cp0'], ip-address",
                 "parameter" : [
                     {
                         "config_primitive_name_ref": "config",
index bc13b17..6944d48 100644 (file)
@@ -547,7 +547,7 @@ class ConfigManagerConfig(object):
     @asyncio.coroutine
     def resolve_xpath(self, xpath, name, vnfd):
         xpath_prefix = "C,/vnfd:vnfd-catalog/vnfd[id='{}']/config-parameter" \
-                "/config-parameter-source/config-parameter-source[name='{}']" \
+                "/config-parameter-source[name='{}']" \
                 "/descriptor".format(vnfd.id, name)
 
         dts_path = yield from self.get_resolved_xpath(xpath, name,
@@ -597,7 +597,7 @@ class ConfigManagerConfig(object):
                              format(attribute, name, vnfd.name))
 
         xpath_prefix = "D,/vnfr:vnfr-catalog/vnfr[id='{}']/config_parameter" \
-                "/config-parameter-source/config-parameter-source[name='{}']" \
+                "/config-parameter-source[name='{}']" \
                 "/attribute".format(vnfr['id'], name)
         dts_path = yield from self.get_resolved_xpath(xpath, name,
                                                       vnfr['name'],