Skip to content

Commit

Permalink
Merge pull request projectcalico#1021 from song-jiang/song-2004
Browse files Browse the repository at this point in the history
Fix network id comparision on Windows OS 2004
  • Loading branch information
song-jiang authored Feb 12, 2021
2 parents 89803a2 + 5cc2a6a commit 6be5ea4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/dataplane/windows/dataplane_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,9 +546,12 @@ func CreateAndAttachHostEP(epName string, hnsNetwork *hcsshim.HNSNetwork, subNet
}
logger.Infof("Deleted stale bridge endpoint [%v]")
hnsEndpoint = nil
} else if hnsEndpoint.VirtualNetwork == hnsNetwork.Id {
} else if strings.ToUpper(hnsEndpoint.VirtualNetwork) == strings.ToUpper(hnsNetwork.Id) {
// Endpoint exists for correct network. No processing required
attachEndpoint = false
} else {
logger.Errorf("HnsEndpoint virtual network %s not matching ID %s",
hnsEndpoint.VirtualNetwork, hnsNetwork.Id)
}
}

Expand Down

0 comments on commit 6be5ea4

Please sign in to comment.