func (s SpaceInfos) SubnetCIDRsBySpaceID() map[string][]string {
	res := make(map[string][]string)
	for _, space := range s {
		for _, sub := range space.Subnets {
			res[space.ID] = append(res[space.ID], sub.CIDR)
		}
	}
	return res
}
// SubnetCIDRsBySpaceID returns the set of known subnet CIDRs grouped by the
// space ID they belong to.
SubnetCIDRsBySpaceID returns the set of known subnet CIDRs grouped by the
space ID they belong to.
// SubnetCIDRsBySpaceID returns the set of known subnet CIDRs grouped by the // space ID they belong to .
func (s SpaceInfos) SubnetCIDRsBySpaceID() map[string][]string {
	res := make(map[string][]string)
	for _, space := range s {
		for _, sub := range space.Subnets {
			res[space.ID] = append(res[space.ID], sub.CIDR)
		}
	}
	return res
}
func ( s SpaceInfos ) SubnetCIDRsBySpaceID ( ) map [ string ] [ ] string { res := make ( map [ string ] [ ] string ) for _ , space := range s { for _ , sub := range space . Subnets { res [ space . ID ] = append ( res [ space . ID ] , sub . CIDR ) } } return res }
SubnetCIDRsBySpaceID returns the set of known subnet CIDRs grouped by the
space ID they belong to.
SubnetCIDRsBySpaceID returns the set of known subnet CIDRs grouped by the space ID they belong to .