Fix in trunk subport simulation

Trunk subport simulation was failing on my env because
the security group that the subports were on did not have an icmp rule.
This patch creates parent ports and subports on the same security group,
to fix the subport ping issue.

Change-Id: I177c9f1375dd2e3b7ed91457444d24387e76343c
This commit is contained in:
Sanjay Chari 2021-08-04 10:44:47 +05:30
parent 1c256789d7
commit f966d0fc58

View File

@ -105,7 +105,8 @@ class TrunkSubportConnection(vm_utils.VMScenario,
subnets.append(subnet[0])
subports.append(self._create_port(
net, {"fixed_ips": [{
"subnet_id": subnet[0]["subnet"]["id"]}]}))
"subnet_id": subnet[0]["subnet"]["id"]}],
"security_groups": [security_group["id"]]}))
self._add_interface_router(subnet[0]['subnet'], router['router'])
jump_ssh = sshutils.SSH("centos", fip, pkey=self.keypair["private"])