- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for parseCidrOrIP (0.1 sec)
-
pilot/pkg/serviceregistry/kube/controller/ambient/helpers.go
} func (a *index) toNetworkAddressFromCidr(vip string) (*workloadapi.NetworkAddress, error) { ip, err := parseCidrOrIP(vip) if err != nil { return nil, err } return &workloadapi.NetworkAddress{ Network: a.Network(vip, make(labels.Instance, 0)).String(), Address: ip.AsSlice(), }, nil } // parseCidrOrIP parses an IP or a CIDR of a exactly 1 IP (e.g. /32).
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 22 20:35:23 UTC 2024 - 7.2K bytes - Viewed (0)