in Kubernetes/wincni/network/endpoint.go [54:65]
func GetEndpointInfo(hnsEndpoint *hcsshim.HNSEndpoint) *EndpointInfo {
macAddress, _ := net.ParseMAC(hnsEndpoint.MacAddress)
return &EndpointInfo{
Name: hnsEndpoint.Name,
ID: hnsEndpoint.Id,
NetworkID: hnsEndpoint.VirtualNetwork,
MacAddress: macAddress,
Gateway: net.ParseIP(hnsEndpoint.GatewayAddress),
IPAddress: hnsEndpoint.IPAddress,
Policies: GetEndpointPolicies(hnsEndpoint.Policies),
}
}