def open(self):
device_type = '<STR_LIT>'<EOL>if self.transport == '<STR_LIT>':<EOL><INDENT>device_type = '<STR_LIT>'<EOL><DEDENT>self.device = ConnectHandler(device_type=device_type,<EOL>host=self.hostname,<EOL>username=self.username,<EOL>password=self.password,<EOL>**self.netmiko_optional_args)<EOL>self.device.enable()<EOL>
Open a connection to the device.