

def ex_update_vlan(self, vlan):
    '\n        Updates the properties of the given VLAN\n        Only name and description are updated\n\n        :param      vlan: The VLAN to update\n        :type       vlan: :class:`DimensionDataNetworkDomain`\n\n        :return: an instance of `DimensionDataVlan`\n        :rtype: :class:`DimensionDataVlan`\n        '
    edit_node = ET.Element('editVlan', {
        'xmlns': TYPES_URN,
    })
    edit_node.set('id', vlan.id)
    ET.SubElement(vlan, 'name').text = vlan.name
    if (vlan.description is not None):
        ET.SubElement(edit_node, 'description').text = vlan.description
    self.connection.request_with_orgId_api_2('network/editVlan', method='POST', data=ET.tostring(edit_node)).object
    return vlan

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver.ex_update_vlan/VarMisuse@47/164 `edit_node`->`vlan`