From: David Garcia Date: Wed, 13 Oct 2021 15:17:28 +0000 (+0200) Subject: Fix bug 1701: remove vcaId parameter on ns-create X-Git-Tag: release-v11.0-start~2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=74184d74a5f28750481ace1134438920d358359f;p=osm%2Fosmclient.git Fix bug 1701: remove vcaId parameter on ns-create Change-Id: I7efc475000c19088e3afe468f6ebbdf79dabe006 Signed-off-by: David Garcia --- diff --git a/osmclient/sol005/ns.py b/osmclient/sol005/ns.py index a5a5c79..ac40aad 100644 --- a/osmclient/sol005/ns.py +++ b/osmclient/sol005/ns.py @@ -181,10 +181,6 @@ class Ns(object): vim_account_id[vim_account] = vim["_id"] return vim["_id"] - def get_vca_id(vim_id): - vim = self._client.vim.get(vim_id) - return vim.get("vca") - def get_wim_account_id(wim_account): self._logger.debug("") # wim_account can be False (boolean) to indicate not use wim account @@ -199,14 +195,11 @@ class Ns(object): return wim["_id"] vim_id = get_vim_account_id(account) - vca_id = get_vca_id(vim_id) ns = {} ns["nsdId"] = nsd["_id"] ns["nsName"] = nsr_name ns["nsDescription"] = description ns["vimAccountId"] = vim_id - if vca_id: - ns["vcaId"] = vca_id # ns['userdata'] = {} # ns['userdata']['key1']='value1' # ns['userdata']['key2']='value2'