Add endpoint_type parameter to MetaInterfaceDriver
Previously MetaInterfaceDriver communicates with neutron-server via 'publicURL' because it uses python-neutronclient without endpoint_type and 'publicURL' is the default. It causes error when a user intends to use internal or admin URL for communication between MetaInterfaceDriver and neutron-server. Change-Id: Id321d5a16a08a4bda618f98bb1eb7cb1b0b9eb08 Closes-bug: #1354285
This commit is contained in:
@@ -449,6 +449,7 @@ class TestMetaInterfaceDriver(TestBase):
|
||||
'meta_flavor_driver_mappings',
|
||||
'fake1:neutron.agent.linux.interface.OVSInterfaceDriver,'
|
||||
'fake2:neutron.agent.linux.interface.BridgeInterfaceDriver')
|
||||
self.conf.set_override('endpoint_type', 'internalURL')
|
||||
|
||||
def test_get_driver_by_network_id(self):
|
||||
meta_interface = interface.MetaInterfaceDriver(self.conf)
|
||||
|
||||
Reference in New Issue
Block a user