X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=nfvo.py;h=b0936e275ee381a9e00277d31cda95dedaa4cad6;hb=edca7b3cd61081d0d84de9acc4dec39daaa07419;hp=f681f5b7cb57f64ebb19a97b19eb7dc9d2d8d2d2;hpb=b69fa9f026b1b5839799cc5dc48af625981cbc3a;p=osm%2FRO.git diff --git a/nfvo.py b/nfvo.py index f681f5b7..b0936e27 100644 --- a/nfvo.py +++ b/nfvo.py @@ -1768,7 +1768,10 @@ def create_instance(mydb, tenant_id, instance_dict): ipprofile['dhcp_enabled'] = ipprofile['dhcp'].get('enabled',True) ipprofile['dhcp_count'] = ipprofile['dhcp'].get('count',None) del ipprofile['dhcp'] - update(scenario_net['ip_profile'],ipprofile) + if 'ip_profile' not in scenario_net: + scenario_net['ip_profile'] = ipprofile + else: + update(scenario_net['ip_profile'],ipprofile) for interface in net_instance_desc.get('interfaces', () ): if 'ip_address' in interface: for vnf in scenarioDict['vnfs']: