From 518a866ae32d168a794276d85952632bb862d375 Mon Sep 17 00:00:00 2001 From: tierno Date: Tue, 30 May 2017 11:35:46 +0200 Subject: [PATCH] adding region=datacenter to sdn networks Change-Id: Ifc702841fff85c484dc7dabb76c5e2a620b495bf Signed-off-by: tierno --- osm_ro/vim_thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osm_ro/vim_thread.py b/osm_ro/vim_thread.py index 67bef44d..9f396a26 100644 --- a/osm_ro/vim_thread.py +++ b/osm_ro/vim_thread.py @@ -412,7 +412,7 @@ class vim_thread(threading.Thread): sdn_net_id = None sdn_controller = self.vim.config.get('sdn-controller') if sdn_controller and (net_type == "data" or net_type == "ptp"): - network = {"name": net_name, "type": net_type} + network = {"name": net_name, "type": net_type, "region": self.vim["config"]["datacenter_id"]} vim_net = self.vim.get_network(net_id) if vim_net.get('encapsulation') != 'vlan': -- 2.25.1