Skip to content

Commit

Permalink
Create security_groups for all interfaces in which it is enabled
Browse files Browse the repository at this point in the history
It was created only form mgmt interface
When using security groups in all interfaces, ping will not work
it we do not add icmp rule

Change-Id: I5f01a0a701240901ff9e0110a0b224957ee7a9f1
(cherry picked from commit 523cdde)
  • Loading branch information
mnietoji committed Jul 27, 2023
1 parent f9b00d4 commit 158950f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nfv_tempest_plugin/tests/scenario/baremetal_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,8 @@ def _create_ports_on_networks(self, num_ports=1, **kwargs):
if 'port_type' in net_param:
create_port_body['binding:vnic_type'] = \
net_param['port_type']
if self.sec_groups and net_name == \
self.mgmt_network:
if self.sec_groups and 'sec_groups' in net_param and \
net_param['sec_groups']:
create_port_body['security_groups'] = \
[s['id'] for s in self.sec_groups]
if 'trusted_vf' in net_param and \
Expand Down

0 comments on commit 158950f

Please sign in to comment.