Merge "Change the half of the bridge name used for ports"

This commit is contained in:
Jenkins 2015-07-02 09:53:23 +00:00 committed by Gerrit Code Review
commit df5ab4b2c7

View File

@ -60,8 +60,8 @@ class OVSAgentTestFramework(base.BaseOVSLinuxTestCase):
self.br_tun = base.get_rand_name(n_const.DEVICE_NAME_MAX_LEN,
prefix='br-tun')
patch_name_len = n_const.DEVICE_NAME_MAX_LEN - len("-patch-tun")
self.patch_tun = "%s-patch-tun" % self.br_int[:patch_name_len]
self.patch_int = "%s-patch-int" % self.br_tun[:patch_name_len]
self.patch_tun = "%s-patch-tun" % self.br_int[patch_name_len:]
self.patch_int = "%s-patch-int" % self.br_tun[patch_name_len:]
self.ovs = ovs_lib.BaseOVS()
self.config = self._configure_agent()
self.driver = interface.OVSInterfaceDriver(self.config)