Merge "FdbInterfaceTestCase interface names should be randomly generated"

This commit is contained in:
Zuul 2019-05-21 00:48:04 +00:00 committed by Gerrit Code Review
commit f4a9b05b31
1 changed files with 5 additions and 2 deletions

View File

@ -15,6 +15,7 @@
import re
import netaddr
from neutron_lib import constants
from oslo_utils import uuidutils
import testscenarios
@ -107,8 +108,10 @@ class FdbInterfaceTestCase(testscenarios.WithScenarios, base.BaseSudoTestCase):
def setUp(self):
super(FdbInterfaceTestCase, self).setUp()
self.device = 'interface'
self.device_vxlan = 'int_vxlan'
self.device = ('int_' + uuidutils.generate_uuid())[
:constants.DEVICE_NAME_MAX_LEN]
self.device_vxlan = ('vxlan_' + uuidutils.generate_uuid())[
:constants.DEVICE_NAME_MAX_LEN]
self.ip = '10.220.0.1/24'
self.ip_vxlan = '10.221.0.1/24'
if self.namespace: