310
310
// CompareInputEndpoints attempts to compare two InputEndpoint objects in a
311
311
// way that's congruent with how Windows's Azure considers them. The name is
313
// is set (not the empty string), all the fields - LocalPort, Port, Protocol,
315
317
func CompareInputEndpoints(a, b *InputEndpoint) bool {
316
318
if a.LoadBalancedEndpointSetName == "" {
317
319
return a.Port == b.Port && a.Protocol == b.Protocol && a.VIP == b.VIP