'List subnets of a virtual network.
:param network: The virtual network containing the subnets.
:type network: :class:`.AzureNetwork`
:return: A list of subnets.
:rtype: ``list`` of :class:`.AzureSubnet`'

def ex_list_subnets(self, network):

    action = ('%s/subnets' % network.id)
    r = self.connection.request(action, params={'api-version': '2015-06-15'})
    return [AzureSubnet(net['id'], net['name'], net['properties']) for net in r.object['value']]
