Ejemplo 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()
Ejemplo 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()
Ejemplo 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
Ejemplo 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