def delete_node(self, node_id):
        node_list = self.list_nodes()

        if utils.get_object(node_list, node_id):
            node_show = self.show_node(node_id)
            if node_show['provision_state'] != 'available':
                self.ironic('node-set-provision-state',
                            params='{0} deleted'.format(node_id))
            if node_show['power_state'] not in ('None', 'off'):
                self.ironic('node-set-power-state',
                            params='{0} off'.format(node_id))
            self.ironic('node-delete', params=node_id)

            node_list_uuid = self.get_nodes_uuids_from_node_list()
            if node_id in node_list_uuid:
                self.fail('Ironic node {0} has not been deleted!'
                          .format(node_id))
Return a list of selected recording channel indices.
dataset/ETHPy150Open openstack/python-ironicclient/ironicclient/tests/functional/base.py/FunctionalTestBase.delete_node--crossover with--dataset/ETHPy150Open rproepp/spykeviewer/spykeviewer/plugin_framework/data_provider_viewer.py/NeoViewerProvider.recording_channels