Skip to content

Commit 8bd9c35

Browse files
Merge pull request #247 from mandre/fix-no-allowed-address-pairs
OCPBUGS-2508: Ensure network defs without subnet follow noAllowedAddressPairs
2 parents 84a5a49 + 1376e5a commit 8bd9c35

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/cloud/openstack/clients/machineservice.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,9 @@ func (is *InstanceService) InstanceCreate(clusterName string, name string, clust
587587
Profile: net.Profile,
588588
PortSecurity: net.PortSecurity,
589589
})
590+
if net.NoAllowedAddressPairs {
591+
subnetsWithoutAllowedAddressPairs[net.UUID] = struct{}{}
592+
}
590593
}
591594

592595
for _, snetParam := range net.Subnets {

0 commit comments

Comments
 (0)