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
Change the state of a node (enable/disable)
dataset/ETHPy150Open apache/libcloud/libcloud/loadbalancer/drivers/dimensiondata.py/DimensionDataLBDriver.ex_set_node_state