Esempio n. 1
0
 def get_br_fdbs(self, if_id):
     dev = self._if_manager.get_mapped_device(if_id)
     if not dev:
         logging.error("Device with id '%s' not found." % if_id)
         return False
     brt = BridgeTool(dev.get_name())
     return brt.get_fdbs()
Esempio n. 2
0
 def get_br_fdbs(self, if_id):
     dev = self._if_manager.get_mapped_device(if_id)
     if not dev:
         logging.error("Device with id '%s' not found." % if_id)
         return False
     brt = BridgeTool(dev.get_name())
     return brt.get_fdbs()
Esempio n. 3
0
 def set_br_state(self, if_id, br_state_info):
     dev = self._if_manager.get_mapped_device(if_id)
     if not dev:
         logging.error("Device with id '%s' not found." % if_id)
         return False
     brt = BridgeTool(dev.get_name())
     brt.set_state(br_state_info)
     return True
Esempio n. 4
0
 def set_br_state(self, if_id, br_state_info):
     dev = self._if_manager.get_mapped_device(if_id)
     if not dev:
         logging.error("Device with id '%s' not found." % if_id)
         return False
     brt = BridgeTool(dev.get_name())
     brt.set_state(br_state_info)
     return True