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)
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)
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",
@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,
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'],