def get(self, node_id=None, flow_name=None):
        """Get Flows specified on the Controller and stuffs the results into
           the OpenDaylightFlow.flows dictionary.

             Optional Arguments: 
                node_id     -   returns flows just for that switch dpid
                flow_name   -   returns the specifically named flow on that switch
        """

        # clear out any remaining crud from previous calls
        if hasattr(self, 'request'):
            del self.request
        if hasattr(self, 'flows'):
            del self.flows

        if node_id is None:
            self.odl.prepare(self.__app, '/')
        elif flow_name is None:
            self.odl.prepare(self.__app, '/' + 'OF/' + node_id + '/')
        else:
            self.odl.prepare(self.__app, '/' + 'OF/' + node_id + '/' 
                         + flow_name + '/')

        self.request = requests.get(url=self.odl.url, auth=self.odl.auth)

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