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
// Storing this is expensive in terms of memory, however there is a bug in Windows Server 2019 that can cause two endpoints to be created with the same IP address.
138
-
// TODO: Store by IP only and remove any lookups by endpoint ID.
// This is highly unlikely to happen, but if it does, we should log a warning
141
+
// and break out of the loop
142
+
klog.Warning("Endpoint ipconfiguration holds more than 2 IP addresses.", "hnsID", ep.Id, "IP", ipConfig.IpAddress, "ipConfigCount", len(ep.IpConfigurations))
// Storing this is expensive in terms of memory, however there is a bug in Windows Server 2019 and 2022 that can cause two endpoints (local and remote) to be created with the same IP address.
158
+
// TODO: Store by IP only and remove any lookups by endpoint ID.
159
+
epInfo:=&endpointInfo{
160
+
ip: ipConfig.IpAddress,
161
+
isLocal: isLocal,
162
+
macAddress: ep.MacAddress,
163
+
hnsID: ep.Id,
164
+
hns: hns,
165
+
// only ready and not terminating endpoints were added to HNS
0 commit comments