The lbaas.opts.SubnetId should be set by subnet id.

Fix #58145
The getSubnetIDForLB() should return subnet id rather than net id.
This commit is contained in:
FengyunPan
2018-01-12 18:57:46 +08:00
parent f6d0632bbb
commit 9958389eb9

View File

@@ -537,7 +537,7 @@ func getSubnetIDForLB(compute *gophercloud.ServiceClient, node v1.Node) (string,
for _, intf := range interfaces {
for _, fixedIP := range intf.FixedIPs {
if fixedIP.IPAddress == ipAddress {
return intf.NetID, nil
return fixedIP.SubnetID, nil
}
}
}