Merge "OVS agent don't hard code tunnel bridge name"
This commit is contained in:
commit
88cdc66158
|
@ -938,7 +938,7 @@ class OVSNeutronAgent(sg_rpc.SecurityGroupAgentRpcCallbackMixin,
|
|||
self.tun_br = self.br_tun_cls(tun_br_name)
|
||||
self.tun_br.set_agent_uuid_stamp(self.agent_uuid_stamp)
|
||||
|
||||
if not self.tun_br.bridge_exists('br-tun'):
|
||||
if not self.tun_br.bridge_exists(self.tun_br.br_name):
|
||||
self.tun_br.create(secure_mode=True)
|
||||
self.tun_br.setup_controllers(self.conf)
|
||||
if (not self.int_br.port_exists(self.conf.OVS.int_peer_patch_port) or
|
||||
|
|
|
@ -212,7 +212,7 @@ class TunnelTest(object):
|
|||
|
||||
self.mock_tun_bridge_expected = [
|
||||
mock.call.set_agent_uuid_stamp(mock.ANY),
|
||||
mock.call.bridge_exists('br-tun'),
|
||||
mock.call.bridge_exists(mock.ANY),
|
||||
nonzero(mock.call.bridge_exists()),
|
||||
mock.call.setup_controllers(mock.ANY),
|
||||
mock.call.port_exists('patch-int'),
|
||||
|
@ -621,7 +621,7 @@ class TunnelTestUseVethInterco(TunnelTest):
|
|||
|
||||
self.mock_tun_bridge_expected = [
|
||||
mock.call.set_agent_uuid_stamp(mock.ANY),
|
||||
mock.call.bridge_exists('br-tun'),
|
||||
mock.call.bridge_exists(mock.ANY),
|
||||
nonzero(mock.call.bridge_exists()),
|
||||
mock.call.setup_controllers(mock.ANY),
|
||||
mock.call.port_exists('patch-int'),
|
||||
|
|
Loading…
Reference in New Issue