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