Skip to content
This repository was archived by the owner on Mar 22, 2018. It is now read-only.

Commit df72029

Browse files
committed
The lbaas.opts.SubnetId should be set by subnet id.
Fix #58145 The getSubnetIDForLB() should return subnet id rather than net id.
1 parent c1a2b22 commit df72029

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/cloudprovider/providers/openstack/openstack_loadbalancer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ func getSubnetIDForLB(compute *gophercloud.ServiceClient, node v1.Node) (string,
537537
for _, intf := range interfaces {
538538
for _, fixedIP := range intf.FixedIPs {
539539
if fixedIP.IPAddress == ipAddress {
540-
return intf.NetID, nil
540+
return fixedIP.SubnetID, nil
541541
}
542542
}
543543
}

0 commit comments

Comments
 (0)