def __init__(self, hostname, username, password, timeout=<NUM_LIT>, optional_args=None):
if optional_args is None:<EOL><INDENT>optional_args = {}<EOL><DEDENT>self.hostname = hostname<EOL>self.username = username<EOL>self.password = password<EOL>self.timeout = timeout<EOL>self.transport = optional_args.get("<STR_LIT>", "<STR_LIT>")<EOL>self.candidate_cfg = optional_args.get("<STR_LIT>", "<STR_LIT>")<EOL>self.merge_cfg = optional_args.get("<STR_LIT>", "<STR_LIT>")<EOL>self.rollback_cfg = optional_args.get("<STR_LIT>", "<STR_LIT>")<EOL>self.inline_transfer = optional_args.get("<STR_LIT>", False)<EOL>if self.transport == "<STR_LIT>":<EOL><INDENT>self.inline_transfer = True<EOL><DEDENT>self._dest_file_system = optional_args.get("<STR_LIT>", None)<EOL>self.auto_rollback_on_error = optional_args.get("<STR_LIT>", True)<EOL>self.auto_file_prompt = optional_args.get("<STR_LIT>", True)<EOL>self.prompt_quiet_changed = False<EOL>self.prompt_quiet_configured = None<EOL>self.netmiko_optional_args = netmiko_args(optional_args)<EOL>default_port = {"<STR_LIT>": <NUM_LIT>, "<STR_LIT>": <NUM_LIT>}<EOL>self.netmiko_optional_args.setdefault("<STR_LIT:port>", default_port[self.transport])<EOL>self.device = None<EOL>self.config_replace = False<EOL>self.platform = "<STR_LIT>"<EOL>self.profile = [self.platform]<EOL>self.use_canonical_interface = optional_args.get("<STR_LIT>", False)<EOL>
NAPALM Cisco IOS Handler.