#NEWLINE# def ex_set_node_state( self , node , enabled ) : #NEWLINE# #INDENT# '\n        Change the state of a node (enable/disable)\n\n        :param pool: The instance of ``DimensionDataNode`` to update\n        :type  pool: ``DimensionDataNode``\n\n        :param enabled: The target state of the node\n        :type  enabled: ``bool``\n\n        :return: The instance of ``DimensionDataNode``\n        :rtype: ``DimensionDataNode``\n        ' #NEWLINE# create_node_elm = ET . Element ( 'editNode' , { #NEWLINE# #INDENT# 'xmlns' : TYPES_URN , #NEWLINE# #UNINDENT# } ) #NEWLINE# ET . SubElement ( create_node_elm , 'status' ) . text = ( 'ENABLED' if ( enabled is True ) else 'DISABLED' ) #NEWLINE# self . connection . request_with_orgId_api_2 ( action = 'networkDomainVip/editNode' , method = 'POST' , data = ET . tostring ( self ) ) . object #NEWLINE# return node