FdbInterfaceTestCase interface names should be randomly generated

Change-Id: Ic97f9563ef02326780574b39395911d23d94dfcc
Closes-Bug: #1828363
This commit is contained in:
Rodolfo Alonso Hernandez 2019-05-09 08:37:10 +00:00
parent bd3d85807c
commit 8db230ab08
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: