mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 05:36:12 +00:00
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:
@@ -537,7 +537,7 @@ func getSubnetIDForLB(compute *gophercloud.ServiceClient, node v1.Node) (string,
|
|||||||
for _, intf := range interfaces {
|
for _, intf := range interfaces {
|
||||||
for _, fixedIP := range intf.FixedIPs {
|
for _, fixedIP := range intf.FixedIPs {
|
||||||
if fixedIP.IPAddress == ipAddress {
|
if fixedIP.IPAddress == ipAddress {
|
||||||
return intf.NetID, nil
|
return fixedIP.SubnetID, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user