else:
self.add_ping_config()
- # Add VNF access point
- if use_vca_conf:
- self.add_vnf_access_point(mano_ut=mano_ut)
- if 'pong_' in self.name:
- self.add_pong_config(mano_ut=mano_ut,
- use_ns_init_conf=use_ns_init_conf)
- else:
- self.add_ping_config(mano_ut=mano_ut,
- use_ns_init_conf=use_ns_init_conf)
-
# sepcify the guest EPA
if use_epa:
vdu.guest_epa.trusted_execution = False
if 'HTTP/1.1 200 OK' in resp:
rc = 0
break
- self._log.error("Got error response: {}".format(resp))
+ logger.error("Got error response: {}".format(resp))
rc = 1
break
elif proc.returncode == 7:
# Connection timeout
if count >= max_tries:
- self._log.error("Connect failed for {}. Failing".format(count))
+ logger.error("Connect failed for {}. Failing".format(count))
rc = 7
break
# Try after delay
# Check if we got 200 OK
resp = proc.stdout.read().decode()
if 'HTTP/1.1 200 OK' not in resp:
- self._log.error("Got error response: {}".format(resp))
+ logger.error("Got error response: {}".format(resp))
rc = 1
return rc
if 'HTTP/1.1 200 OK' in resp:
rc = 0
break
- self._log.error("Got error response: {}".format(resp))
+ logger.error("Got error response: {}".format(resp))
rc = 1
break
elif proc.returncode == 7:
# Connection timeout
if count >= max_tries:
- self._log.error("Connect failed for {}. Failing".format(count))
+ logger.error("Connect failed for {}. Failing".format(count))
rc = 7
break
# Try after delay
# Check if we got 200 OK
resp = proc.stdout.read().decode()
if 'HTTP/1.1 200 OK' not in resp:
- self._log.error("Got error response: {}".format(resp))
+ logger.error("Got error response: {}".format(resp))
rc = 1
return rc
}
}
- list vnfap-map {
- key "id";
- description "A mapping of VNF application point
- capability/dependency within this network service";
- leaf id {
- description "Identfier for VNF access point map";
- type string;
- }
- container capability {
- leaf member-vnf-index-ref {
- description "Reference to member-vnf within constituent-vnfds";
- type leafref {
- path "../../../../constituent-vnfd/member-vnf-index";
- }
- }
- leaf capability-ref {
- description "Reference to the capability with the capability of the VNF
- with the specified member-vnf-index";
- type leafref {
- path "/vnfd:vnfd-catalog/vnfd:vnfd/vnfd:vnfap/vnfd:capability/vnfd:name";
- }
- }
- }
- container dependency {
- leaf member-vnf-index-ref {
- description "Reference to member-vnf within constituent-vnfds";
- type leafref {
- path "../../../../constituent-vnfd/member-vnf-index";
- }
- }
- leaf dependency-ref {
- description "Reference to the dependency within the dependency of the VNF
- with the specified member-vnf-index";
- type leafref {
- path "/vnfd:vnfd-catalog/vnfd:vnfd/vnfd:vnfap/vnfd:dependency/vnfd:name";
- }
- }
- }
- }
-
// replicate for pnfd container here
uses manotypes:provider-network;
key "id";
uses vnfd-descriptor;
-
- uses vnf-access-point;
}
}
}