'Creates one network with num segments and num subnets'

def _create_test_segments_with_subnets(self, num):

    with self.network() as network:
        (segments, subnets) = ([], [])
        for i in range(num):
            cidr = ('2001:db8:0:%s::/64' % i)
            physnet = ('physnet%s' % i)
            (_net, segment, subnet) = self._create_test_segment_with_subnet(network=network, cidr=cidr, physnet=physnet)
            segments.append(segment)
            subnets.append(subnet)
        return (network, segments, subnets)
