[UT] Do not create network ports with same MAC address
In ``TestOVNClientQosExtension``, avoid creating a router GW port with a MAC address that could match the ports created in ``_initialize_objs`` to be used as floating IP ports. Closes-Bug: #1972713 Change-Id: Ida2971f9a41122a0c3522a446c70497655fdf97b
This commit is contained in:
parent
dda20363cf
commit
b5d4bc376c
@ -121,7 +121,7 @@ class TestOVNClientQosExtension(test_plugin.Ml2PluginV2TestCase):
|
||||
network = network_obj.Network(
|
||||
self.ctx, id=uuidutils.generate_uuid(), project_id=self.project_id)
|
||||
network.create()
|
||||
router_gw_port = self._create_one_port(random.randint(1, 10000),
|
||||
router_gw_port = self._create_one_port(random.randint(10**6, 10**7),
|
||||
network.id)
|
||||
router = router_obj.Router(self.ctx, id=uuidutils.generate_uuid(),
|
||||
gw_port_id=router_gw_port.id)
|
||||
|
Loading…
Reference in New Issue
Block a user