def _create_dot1x_speaker(self, dot1x_intf, chewie_id, radius_ip, radius_port, radius_secret): """ Args: dot1x_intf (str): chewie_id (str): radius_ip (str): radius_port (int): radius_secret (str): Returns: Chewie """ _chewie = chewie.Chewie( # pylint: disable=too-many-function-args dot1x_intf, self.logger, self.auth_handler, self.failure_handler, self.logoff_handler, radius_ip, radius_port, radius_secret, chewie_id) hub.spawn(_chewie.run) return _chewie
def _create_dot1x_speaker(self, dot1x_intf, chewie_id, radius_ip, radius_port, radius_secret): """ Args: dot1x_intf (str): chewie_id (str): radius_ip (str): radius_port (int): radius_secret (str): Returns: Chewie """ _chewie = chewie.Chewie( dot1x_intf, self.logger, self.auth_handler, self.failure_handler, self.logoff_handler, radius_ip, radius_port, radius_secret, chewie_id) self.thread = hub.spawn(_chewie.run) self.thread.name = 'chewie' return _chewie