

def ex_list_vlans(self, location=None, network_domain=None, name=None, ipv4_address=None, ipv6_address=None, state=None):
    '\n        List VLANs available, can filter by location and/or network domain\n\n        :param      location: Only VLANs in this location (optional)\n        :type       location: :class:`NodeLocation` or ``str``\n\n        :param      network_domain: Only VLANs in this domain (optional)\n        :type       network_domain: :class:`DimensionDataNetworkDomain`\n\n        :param      name: Only VLANs with this name (optional)\n        :type       name: ``str``\n\n        :param      ipv4_address: Only VLANs with this ipv4 address (optional)\n        :type       ipv4_address: ``str``\n\n        :param      ipv6_address: Only VLANs with this ipv6 address  (optional)\n        :type       ipv6_address: ``str``\n\n        :param      state: Only VLANs with this state (optional)\n        :type       state: ``str``\n\n        :return: a list of DimensionDataVlan objects\n        :rtype: ``list`` of :class:`DimensionDataVlan`\n        '
    params = {
        
    }
    if (location is not None):
        params['datacenterId'] = self._location_to_location_id(location)
    if (network_domain is not None):
        params['networkDomainId'] = self._network_domain_to_network_domain_id(network_domain)
    if (name is not None):
        params['name'] = name
    if (ipv4_address is not None):
        params['privateIpv4Address'] = ipv4_address
    if (ipv6_address is not None):
        params['ipv6Address'] = ipv6_address
    if (state is not None):
        params['state'] = state
    response = self.connection.request_with_orgId_api_2('network/vlan', params=params).object
    return self._to_vlans(response)

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver.ex_list_vlans/original