diff options
author | helenyao <yaohelan@huawei.com> | 2017-03-24 11:32:19 +0800 |
---|---|---|
committer | helenyao <yaohelan@huawei.com> | 2017-03-31 17:01:36 +0800 |
commit | 4862069b743b24bfc6478102a2a3872d9178838d (patch) | |
tree | f68362079aa4730d663ec106b787c6ac8a6618d2 /opnfv/deployment/factory.py | |
parent | b6594c4206197b21677935bd732755a653824ad3 (diff) |
Compass Adapter to get deployment information
result of example.py for Compass(ODL enabled) can be refered here
https://pastebin.com/k3UW9bUJ
Change-Id: I56352d71152078a44d706d97c67fb8d69b20ad2d
Signed-off-by: helenyao <yaohelan@huawei.com>
Diffstat (limited to 'opnfv/deployment/factory.py')
-rw-r--r-- | opnfv/deployment/factory.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/opnfv/deployment/factory.py b/opnfv/deployment/factory.py index 1ccee4e..b8e5c8e 100644 --- a/opnfv/deployment/factory.py +++ b/opnfv/deployment/factory.py @@ -9,6 +9,7 @@ from opnfv.deployment.apex import adapter as apex_adapter +from opnfv.deployment.compass import adapter as compass_adapter from opnfv.deployment.fuel import adapter as fuel_adapter from opnfv.utils import opnfv_logger as logger @@ -40,6 +41,11 @@ class Factory(object): return fuel_adapter.FuelAdapter(installer_ip=installer_ip, installer_user=installer_user, installer_pwd=installer_pwd) + elif installer.lower() == "compass": + return compass_adapter.CompassAdapter( + installer_ip=installer_ip, + installer_user=installer_user, + installer_pwd=installer_pwd) else: raise Exception("Installer adapter is not implemented for " "the given installer.") |