'Change the state of a node (enable/disable)
:param pool: The instance of ``DimensionDataNode`` to update
:type  pool: ``DimensionDataNode``
:param enabled: The target state of the node
:type  enabled: ``bool``
:return: The instance of ``DimensionDataNode``
:rtype: ``DimensionDataNode``'

def ex_set_node_state(self, node, enabled):

    create_node_elm = ET.Element('editNode', {'xmlns': TYPES_URN})
    ET.SubElement(create_node_elm, 'status').text = ('ENABLED' if (enabled is True) else 'DISABLED')
    self.connection.request_with_orgId_api_2(action='networkDomainVip/editNode', method='POST', data=ET.tostring(create_node_elm)).object
    return node
