From 1c848c01d41949c0498a342c38327b8e9dae03bd Mon Sep 17 00:00:00 2001 From: tierno Date: Mon, 21 May 2018 16:40:33 +0200 Subject: [PATCH] Minor fixes at sdn-port-mapping Change-Id: I00e8bed1ab97d75654e2eb7ddc330689abde7fcf Signed-off-by: tierno --- openmanod | 2 +- osm_ro/nfvo.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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, -- 2.25.1