def aux(self): """ Start a telnet console and connect it to this router's AUX port """ if not self.router.aux: print translate("IOSRouter", "AUX port not available for this router model or base AUX port is set to 0 in preferences") return if self.router and self.router.state == 'running': console.connect(self.hypervisor.host, self.router.aux, self.hostname)
def console(self): """ Start a telnet console and connect it to this router """ if self.emudev and self.emudev.state == 'running' and self.emudev.console: proc = console.connect(self.emudev.dynamips.host, self.emudev.console, self.hostname) if proc: self.consoleProcesses.append(proc) AbstractNode.clearClosedConsoles(self)
def console(self): """ Start a telnet console and connect it to this router """ if self.router and self.router.state == 'running' and self.router.console: proc = console.connect(self.hypervisor.host, self.router.console, self.hostname) if proc: self.consoleProcesses.append(proc) AbstractNode.clearClosedConsoles(self)
def console(self): """ Start a telnet console and connect it to this router """ if self.emu_vboxdev and self.emu_vboxdev.state == 'running' and self.emu_vboxdev.console and self.emu_vboxdev.console_support: if not self.emu_vboxdev.console_telnet_server: p = re.compile('\s+', re.UNICODE) pipe_name = p.sub("_", self.emu_vboxdev.image) if sys.platform.startswith('win'): pipe_name = r'\\.\pipe\VBOX\%s' % pipe_name elif os.path.exists(self.emu_vboxdev.dynamips.workingdir): pipe_name = self.emu_vboxdev.dynamips.workingdir + os.sep + "pipe_%s" % pipe_name else: pipe_name = "/tmp/pipe_%s" % pipe_name proc = console.pipe_connect(self.hostname, pipe_name) else: proc = console.connect(self.emu_vboxdev.dynamips.host, self.emu_vboxdev.console, self.hostname) if proc: self.consoleProcesses.append(proc) AbstractNode.clearClosedConsoles(self)
def aux(self): """ Start a telnet console and connect it to this router's AUX port """ if not self.router.aux: QtGui.QMessageBox.critical(globals.GApp.mainWindow, translate("IOSRouter", "AUX port"), translate("AbstractNode", "AUX port not available for this router model or base AUX port is set to 0 in preferences")) return False if self.router and self.router.state == 'running': proc = console.connect(self.hypervisor.host, self.router.aux, self.hostname) if proc: self.consoleProcesses.append(proc) AbstractNode.clearClosedConsoles(self)
def aux(self): """ Start a telnet console and connect it to this router's AUX port """ if not self.router.aux: QtGui.QMessageBox.critical( globals.GApp.mainWindow, translate("IOSRouter", "AUX port"), translate( "AbstractNode", "AUX port not available for this router model or base AUX port is set to 0 in preferences" )) return False if self.router and self.router.state == 'running': proc = console.connect(self.hypervisor.host, self.router.aux, self.hostname) if proc: self.consoleProcesses.append(proc) AbstractNode.clearClosedConsoles(self)
def console(self): """ Start a telnet console and connect it to this router """ if self.router and self.router.state == 'running' and self.router.console: console.connect(self.hypervisor.host, self.router.console, self.hostname)
def console(self): """ Start a telnet console and connect it to this router """ if self.emudev and self.emudev.state == 'running' and self.emudev.console: console.connect(self.emudev.dynamips.host, self.emudev.console, self.hostname)