def open(self):
try:<EOL><INDENT>connection = self.transport_class(<EOL>host=self.hostname,<EOL>username=self.username,<EOL>password=self.password,<EOL>timeout=self.timeout,<EOL>**self.eapi_kwargs<EOL>)<EOL>if self.device is None:<EOL><INDENT>self.device = pyeapi.client.Node(connection, enablepwd=self.enablepwd)<EOL><DEDENT>self.device.run_commands(["<STR_LIT>"], encoding="<STR_LIT:text>")<EOL><DEDENT>except ConnectionError as ce:<EOL><INDENT>raise ConnectionException(py23_compat.text_type(ce))<EOL><DEDENT>
Implementation of NAPALM method open.