Minor fixes at sdn-port-mapping 82/6182/1 v4.0.0
authortierno <alfonso.tiernosepulveda@telefonica.com>
Mon, 21 May 2018 14:40:33 +0000 (16:40 +0200)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Mon, 21 May 2018 14:40:33 +0000 (16:40 +0200)
Change-Id: I00e8bed1ab97d75654e2eb7ddc330689abde7fcf
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
openmanod
osm_ro/nfvo.py

index 14691d3..5ff3285 100755 (executable)
--- a/openmanod
+++ b/openmanod
@@ -48,7 +48,7 @@ import osm_ro
 
 __author__ = "Alfonso Tierno, Gerardo Garcia, Pablo Montes"
 __date__ = "$26-aug-2014 11:09:29$"
-__version__ = "0.5.64-r574"
+__version__ = "0.5.65-r575"
 version_date = "May 2018"
 database_version = 31      # expected database schema version
 
index 7a3e959..282b7f3 100644 (file)
@@ -4357,6 +4357,7 @@ def delete_tenant(mydb, tenant):
 
 
 def new_datacenter(mydb, datacenter_descriptor):
+    sdn_port_mapping = None
     if "config" in datacenter_descriptor:
         sdn_port_mapping = datacenter_descriptor["config"].pop("sdn-port-mapping", None)
         datacenter_descriptor["config"] = yaml.safe_dump(datacenter_descriptor["config"], default_flow_style=True,