X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=nfvo.py;h=e64ba1c94a483f1ec724d250e4c174f57e15acc8;hb=refs%2Fchanges%2F95%2F895%2F2;hp=0d60ff72373f09348e3eb59ffb70ee028dcde5bd;hpb=ed746039f90fa3a6742e31b267c301aa19ac7e8b;p=osm%2FRO.git diff --git a/nfvo.py b/nfvo.py index 0d60ff72..e64ba1c9 100644 --- a/nfvo.py +++ b/nfvo.py @@ -1481,6 +1481,10 @@ def start_scenario(mydb, tenant_id, scenario_id, instance_scenario_name, instanc netDict['vpci'] = iface['vpci'] if "mac" in iface and iface["mac"] is not None: netDict['mac_address'] = iface['mac'] + if "port-security" in iface and iface["port-security"] is not None: + netDict['port_security'] = iface['port-security'] + if "floating-ip" in iface and iface["floating-ip"] is not None: + netDict['floating_ip'] = iface['floating-ip'] netDict['name'] = iface['internal_name'] if iface['net_id'] is None: for vnf_iface in sce_vnf["interfaces"]: @@ -2001,6 +2005,11 @@ def create_instance(mydb, tenant_id, instance_dict): netDict['vpci'] = iface['vpci'] if "mac" in iface and iface["mac"] is not None: netDict['mac_address'] = iface['mac'] + logger.debug("Pablo iface %s", str(iface)) + if "port-security" in iface and iface["port-security"] is not None: + netDict['port_security'] = iface['port-security'] + if "floating-ip" in iface and iface["floating-ip"] is not None: + netDict['floating_ip'] = iface['floating-ip'] netDict['name'] = iface['internal_name'] if iface['net_id'] is None: for vnf_iface in sce_vnf["interfaces"]: