def get_nodes(self):
        """Get information about Nodes on the Controller and stuffs the
           result into the OpenDaylightNode.notes dictionary.

        """
        if hasattr(self, 'request'):
            del self.request
        if hasattr(self, 'nodes'):
            del self.nodes

        self.odl.prepare(self.__app, '/nodes/')
        self.request = requests.get(url=self.odl.url, auth=self.odl.auth)

        if self.request.status_code == 200:
            self.nodes = self.request.json()
            if 'nodeProperties' in self.nodes:
                self.nodes = self.nodes.get('nodeProperties')
        else:
            raise OpenDaylightError({'url':self.odl.url, 
                                     'http_code':self.request.status_code,
                                     'msg':self.request.text})
dataset/ETHPy150Open dwcarder/python-OpenDaylight/OpenDaylight.py/OpenDaylightNode.get_nodes/original