From: tierno Date: Tue, 30 May 2017 09:35:46 +0000 (+0200) Subject: adding region=datacenter to sdn networks X-Git-Tag: v2.0.2~25 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F91%2F1891%2F4;p=osm%2FRO.git adding region=datacenter to sdn networks Change-Id: Ifc702841fff85c484dc7dabb76c5e2a620b495bf Signed-off-by: tierno --- 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':