From c9aa53d5912f1d45863a93dfbba0b6d1c80106ff Mon Sep 17 00:00:00 2001 From: Ethan Lynn Date: Thu, 14 Sep 2017 21:15:55 -0600 Subject: Add more VIM info from AAI Change-Id: If8462481a581504b1be038485d131675e0175b08 issue-id: MULTICLOUD-93 Signed-off-by: Ethan Lynn --- vio/vio/pub/msapi/extsys.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vio/vio/pub/msapi/extsys.py b/vio/vio/pub/msapi/extsys.py index 5584a3f..b3ed044 100644 --- a/vio/vio/pub/msapi/extsys.py +++ b/vio/vio/pub/msapi/extsys.py @@ -31,6 +31,7 @@ def get_vim_by_id(vim_id): ret['type'] = ret['cloud-type'] ret['version'] = ret['cloud-region-version'] ret['vimId'] = vim_id + ret['name'] = vim_id ret['userName'] = ret['esr-system-info-list'][ 'esr-system-info'][0]['username'] ret['password'] = ret['esr-system-info-list'][ @@ -39,4 +40,10 @@ def get_vim_by_id(vim_id): 'esr-system-info'][0]['default-tenant'] ret['url'] = ret['esr-system-info-list'][ 'esr-system-info'][0]['service-url'] + ret['domain'] = ret['esr-system-info-list'][ + 'esr-system-info'][0]['cloud-domain'] + ret['cacert'] = ret['esr-system-info-list'][ + 'esr-system-info'][0]['ssl-cacert'] + ret['insecure'] = ret['esr-system-info-list'][ + 'esr-system-info'][0]['ssl-insecure'] return ret -- cgit 1.2.3-korg