You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
func LocalNetworks(mc metadata.Client) ([]metadata.Network, map[string]metadata.Container, error) {
...
...
for _, service := range services {
// Trick to select the primary service of the network plugin
// stack
// TODO: Need to check if it's needed for Calico?
if !(service.Kind == "networkDriverService" &&
service.Name == service.PrimaryServiceName) {
continue
}
for _, aContainer := range service.Containers {
if aContainer.HostUUID == host.UUID {
routers[aContainer.NetworkUUID] = aContainer
localNetworks[aContainer.NetworkUUID] = true
}
}
}
if len(localNetworks) == 0 {
return nil, nil, nil
}
ret := []metadata.Network{}
for _, aNetwork := range networks {
if _, ok := localNetworks[aNetwork.UUID]; ok {
ret = append(ret, aNetwork)
}
}
}
Here, sometimes we can not get the right localNetworks when using l2-flat or l3-routing netwoking.
The text was updated successfully, but these errors were encountered:
network/local.go
in network-manager:Here, sometimes we can not get the right localNetworks when using l2-flat or l3-routing netwoking.
The text was updated successfully, but these errors were encountered: