Merge "FdbInterfaceTestCase interface names should be randomly generated"
This commit is contained in:
commit
f4a9b05b31
|
@ -15,6 +15,7 @@
|
||||||
import re
|
import re
|
||||||
|
|
||||||
import netaddr
|
import netaddr
|
||||||
|
from neutron_lib import constants
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
import testscenarios
|
import testscenarios
|
||||||
|
|
||||||
|
@ -107,8 +108,10 @@ class FdbInterfaceTestCase(testscenarios.WithScenarios, base.BaseSudoTestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(FdbInterfaceTestCase, self).setUp()
|
super(FdbInterfaceTestCase, self).setUp()
|
||||||
self.device = 'interface'
|
self.device = ('int_' + uuidutils.generate_uuid())[
|
||||||
self.device_vxlan = 'int_vxlan'
|
: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 = '10.220.0.1/24'
|
||||||
self.ip_vxlan = '10.221.0.1/24'
|
self.ip_vxlan = '10.221.0.1/24'
|
||||||
if self.namespace:
|
if self.namespace:
|
||||||
|
|
Loading…
Reference in New Issue