From: tierno Date: Mon, 21 May 2018 14:40:33 +0000 (+0200) Subject: Minor fixes at sdn-port-mapping X-Git-Tag: v4.0.0^0 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=1c848c01d41949c0498a342c38327b8e9dae03bd;p=osm%2FRO.git Minor fixes at sdn-port-mapping Change-Id: I00e8bed1ab97d75654e2eb7ddc330689abde7fcf Signed-off-by: tierno --- diff --git a/openmanod b/openmanod index 14691d32..5ff32852 100755 --- 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 diff --git a/osm_ro/nfvo.py b/osm_ro/nfvo.py index 7a3e959e..282b7f38 100644 --- a/osm_ro/nfvo.py +++ b/osm_ro/nfvo.py @@ -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,