fix issue creating instance of only networks without scenario 69/7069/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Tue, 18 Dec 2018 15:19:27 +0000 (15:19 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Tue, 18 Dec 2018 15:19:59 +0000 (15:19 +0000)
Change-Id: Ibeb3a9f6176c7bc5b9178661d88f37bf204d11e0
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
osm_ro/nfvo.py

index 7225da5..1290690 100644 (file)
@@ -3253,7 +3253,7 @@ def create_instance(mydb, tenant_id, instance_dict):
                     lookfor_network = True
                     lookfor_filter["name"] = sce_net.get("vim_network_name")
                 elif sce_net["external"]:
-                    if sce_net['vim_id'] is not None:
+                    if sce_net.get('vim_id'):
                         # there is a netmap at datacenter_nets database   # TODO REVISE!!!!
                         create_network = False
                         lookfor_network = True