From 5ca9e7cbdf3487679abf6fddcdd889c221ad37c4 Mon Sep 17 00:00:00 2001 From: Dominik Fleischmann Date: Thu, 19 Mar 2020 10:32:55 +0100 Subject: [PATCH] Add multicloud controller support This commit depends on 8702. As it needs the cloud VCA config variable. https://osm.etsi.org/gerrit/#/c/osm/LCM/+/8702/ Change-Id: If55cebd90ad69f0c09a4e6f27e63c1c5aff5d34f Signed-off-by: Dominik Fleischmann --- n2vc/n2vc_juju_conn.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/n2vc/n2vc_juju_conn.py b/n2vc/n2vc_juju_conn.py index c6c9890..f57b008 100644 --- a/n2vc/n2vc_juju_conn.py +++ b/n2vc/n2vc_juju_conn.py @@ -168,6 +168,7 @@ class N2VCJujuConnector(N2VCConnector): else: self.apt_mirror = None + self.cloud = vca_config.get('cloud') self.log.debug('Arguments have been checked') # juju data @@ -1166,7 +1167,8 @@ class N2VCJujuConnector(N2VCConnector): model = await self.controller.add_model( model_name=model_name, - config=config_dict + config=config_dict, + cloud_name=self.cloud, ) self.log.info('New model created, name={}'.format(model_name)) else: -- 2.25.1