

def ex_create_vlan(self, network_domain, name, private_ipv4_base_address, description=None, private_ipv4_prefix_size=24):
    '\n        Deploy a new VLAN to a network domain\n\n        :param      network_domain: The network domain to add the VLAN to\n        :type       network_domain: :class:`DimensionDataNetworkDomain`\n\n        :param      name: The name of the VLAN to create\n        :type       name: ``str``\n\n        :param      private_ipv4_base_address: The base IPv4 address\n            e.g. 192.168.1.0\n        :type       private_ipv4_base_address: ``str``\n\n        :param      description: An additional description of the VLAN\n        :type       description: ``str``\n\n        :param      private_ipv4_prefix_size: The size of the IPv4\n            address space, e.g 24\n        :type       private_ipv4_prefix_size: ``int``\n\n        :return: an instance of `DimensionDataVlan`\n        :rtype: :class:`DimensionDataVlan`\n        '
    create_node = ET.Element('deployVlan', {
        'xmlns': TYPES_URN,
    })
    ET.SubElement(create_node, 'networkDomainId').text = network_domain.id
    ET.SubElement(create_node, 'name').text = name
    if (info is not None):
        ET.SubElement(create_node, 'description').text = description
    ET.SubElement(create_node, 'privateIpv4BaseAddress').text = private_ipv4_base_address
    ET.SubElement(create_node, 'privateIpv4PrefixSize').text = str(private_ipv4_prefix_size)
    response = self.connection.request_with_orgId_api_2('network/deployVlan', method='POST', data=ET.tostring(create_node)).object
    vlan_id = None
    for info in findall(response, 'info', TYPES_URN):
        if (info.get('name') == 'vlanId'):
            vlan_id = info.get('value')
    return self.ex_get_vlan(vlan_id)

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver.ex_create_vlan/VarMisuse@74/404 `description`->`info`