def test_console_serial(self): c = ctype.ConsoleSerial(host='127.0.0.1', port=8945) self.assertIsInstance(c, ctype.Console)
def get_serial_console(self, context, instance): return ctype.ConsoleSerial(internal_access_path='FAKE', host='fakerdpconsole.com', port=6969)
def get_serial_console(self): if not CONF.serial_console.enabled: raise exception.ConsoleTypeUnavailable(console_type='serial') return ctype.ConsoleSerial(host=self._listen_host, port=self._listen_port)