func (s *SubnetInfo) ParsedCIDRNetwork() (*net.IPNet, error) {
	// Memoize the CIDR the first time this method is called or if the
	// CIDR field has changed.
	if s.parsedCIDRNetwork == nil || s.parsedCIDRNetwork.String() != s.CIDR {
		_, ipNet, err := net.ParseCIDR(s.CIDR)
		if err != nil {
			return nil, err
		}

		s.parsedCIDRNetwork = ipNet
	}
	return s.parsedCIDRNetwork, nil
}
// ParsedCIDRNetwork returns the network represented by the CIDR field.
ParsedCIDRNetwork returns the network represented by the CIDR field.
// ParsedCIDRNetwork returns the network represented by the CIDR field .
func (s *SubnetInfo) ParsedCIDRNetwork() (*net.IPNet, error) {
	if s.parsedCIDRNetwork == nil || s.parsedCIDRNetwork.String() != s.CIDR {
		_, ipNet, err := net.ParseCIDR(s.CIDR)
		if err != nil {
			return nil, err
		}
		s.parsedCIDRNetwork = ipNet
	}
	return s.parsedCIDRNetwork, nil
}
func ( s * SubnetInfo ) ParsedCIDRNetwork ( ) ( * net . IPNet , error ) { if s . parsedCIDRNetwork == nil || s . parsedCIDRNetwork . String ( ) != s . CIDR { _ , ipNet , err := net . ParseCIDR ( s . CIDR ) if err != nil { return nil , err } s . parsedCIDRNetwork = ipNet } return s . parsedCIDRNetwork , nil }
ParsedCIDRNetwork returns the network represented by the CIDR field.
ParsedCIDRNetwork returns the network represented by the CIDR field .
// Memoize the CIDR the first time this method is called or if the // CIDR field has changed.