SHOW:
|
|
- or go back to the newest paste.
| 1 | from snaps.openstack.utils import keystone_utils | |
| 2 | from snaps.openstack.tests import openstack_tests | |
| 3 | rc_file='/home/opnfv/functest/conf/openstack.creds' | |
| 4 | os_creds = openstack_tests.get_credentials( | |
| 5 | os_env_file=rc_file, | |
| 6 | proxy_settings_str=None, | |
| 7 | ssh_proxy_cmd=None) | |
| 8 | print("NOVA:")
| |
| 9 | admin=keystone_utils.get_endpoint(os_creds, 'compute', interface='admin') | |
| 10 | print("admin=%s" %admin)
| |
| 11 | internal=keystone_utils.get_endpoint(os_creds, 'compute', interface='internal') | |
| 12 | print("internal=%s" %internal)
| |
| 13 | public=keystone_utils.get_endpoint(os_creds, 'compute', interface='public') | |
| 14 | print("public=%s" %public)
| |
| 15 | ||
| 16 | ||
| 17 | print("KEYSTONE")
| |
| 18 | admin=keystone_utils.get_endpoint(os_creds, 'identity', interface='admin') | |
| 19 | print("admin=%s" %admin)
| |
| 20 | internal=keystone_utils.get_endpoint(os_creds, 'identity', interface='internal') | |
| 21 | print("internal=%s" %internal)
| |
| 22 | public=keystone_utils.get_endpoint(os_creds, 'identity', interface='public') | |
| 23 | print("public=%s" %public) |