diff --git a/networking_arista/ml2/arista_ml2.py b/networking_arista/ml2/arista_ml2.py index cdebf23..12efefe 100644 --- a/networking_arista/ml2/arista_ml2.py +++ b/networking_arista/ml2/arista_ml2.py @@ -109,7 +109,7 @@ class AristaRPCWrapperBase(object): {'protocol': self.keystone_conf.auth_protocol, 'host': self.keystone_conf.auth_host, 'port': self.keystone_conf.auth_port}) - return '%s/v2.0/' % auth_uri + return '%s/v3/' % auth_uri def _api_username(self): return cfg.CONF.ml2_arista.eapi_username diff --git a/networking_arista/tests/unit/ml2/test_arista_mechanism_driver.py b/networking_arista/tests/unit/ml2/test_arista_mechanism_driver.py index 4730ccd..8e6c7da 100644 --- a/networking_arista/tests/unit/ml2/test_arista_mechanism_driver.py +++ b/networking_arista/tests/unit/ml2/test_arista_mechanism_driver.py @@ -282,7 +282,7 @@ class TestAristaJSONRPCWrapper(testlib_api.SqlTestCase): self.drv.register_with_eos() post_data = {'name': 'keystone', 'password': 'fun', 'tenant': 'tenant_name', 'user': 'neutron', - 'authUrl': 'abc://host:5000/v2.0/'} + 'authUrl': 'abc://host:5000/v3/'} clean_data = post_data.copy() clean_data['password'] = "*****" calls = [ @@ -1277,9 +1277,9 @@ class PositiveRPCWrapperValidConfigTestCase(testlib_api.SqlTestCase): def test_register_with_eos(self, mock_send_eapi_req): self.drv.register_with_eos() auth = utils.fake_keystone_info_class() - keystone_url = '%s://%s:%s/v2.0/' % (auth.auth_protocol, - auth.auth_host, - auth.auth_port) + keystone_url = '%s://%s:%s/v3/' % (auth.auth_protocol, + auth.auth_host, + auth.auth_port) auth_cmd = ('auth url %s user %s password %s tenant %s' % ( keystone_url, auth.admin_user, diff --git a/networking_arista/tests/unit/ml2/test_mechanism_arista.py b/networking_arista/tests/unit/ml2/test_mechanism_arista.py index f669107..672bad5 100644 --- a/networking_arista/tests/unit/ml2/test_mechanism_arista.py +++ b/networking_arista/tests/unit/ml2/test_mechanism_arista.py @@ -1416,7 +1416,7 @@ class fake_keystone_info_class(object): Arista Driver expects Keystone auth info. This fake information is for testing only """ - auth_uri = 'abc://host:35357/v2.0/' + auth_uri = 'abc://host:35357/v3/' identity_uri = 'abc://host:5000' admin_user = 'neutron' admin_password = 'fun'