'perform oc get node'

def get_nodes(self, node=None, selector=''):

    _node = None
    _sel = None
    if node:
        _node = node
    if selector:
        _sel = selector
    results = self._get('node', name=_node, selector=_sel)
    if (results['returncode'] != 0):
        return results
    nodes = []
    items = None
    if (results['results'][0]['kind'] == 'List'):
        items = results['results'][0]['items']
    else:
        items = results['results']
    for node in items:
        _node = {}
        _node['name'] = node['metadata']['name']
        _node['schedulable'] = True
        if ('unschedulable' in node['spec']):
            _node['schedulable'] = False
        nodes.append(_node)
    return nodes
