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

Commit 9c90a75

Browse files
author
Kubernetes Submit Queue
authored
Merge pull request #58208 from FengyunPan/fix-autoprobe-subnet
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. The lbaas.opts.SubnetId should be set by subnet id. Fix #58145 The getSubnetIDForLB() should return subnet id rather than net id. **Release note**: ```release-note NONE ```
2 parents c1a2b22 + df72029 commit 9c90a75

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)