UNPKG

n8n-nodes-netdevices

Version:

n8n node to interact with network devices (Cisco, Juniper, Palo Alto PAN-OS, Ciena SAOS, Linux, etc.)

30 lines (29 loc) 968 B
import { BaseConnection, DeviceCredentials } from './base-connection'; export declare class JumpHostConnection extends BaseConnection { private jumpHostClient; private tunnelStream; protected jumpHostConnected: boolean; constructor(credentials: DeviceCredentials); private setupJumpHostEventHandlers; private setupTargetConnectionEventHandlers; connect(): Promise<void>; private connectToJumpHost; private tryJumpHostConnectWithConfig; private createOutboundTunnel; private connectThroughTunnel; isConnectedAndReady(): boolean; private isLinuxDevice; sendCommand(command: string): Promise<any>; private sendLinuxCommand; private stripAnsi; disconnect(): Promise<void>; private cleanup; getConnectionInfo(): { host: string; port: number; deviceType: string; connected: boolean; jumpHost?: string; }; protected getOptimizedAlgorithms(): any[]; }