n8n-nodes-netdevices
Version:
n8n node to interact with network devices
19 lines (18 loc) • 866 B
TypeScript
import { BaseConnection, DeviceCredentials, CommandResult } from '../base-connection';
export declare class CiscoIOSXRConnection extends BaseConnection {
private inConfigMode;
constructor(credentials: DeviceCredentials);
protected sessionPreparation(): Promise<void>;
private createIOSXRShellChannel;
protected setTerminalSettings(): Promise<void>;
protected setBasePrompt(): Promise<void>;
protected enterConfigMode(): Promise<void>;
protected exitConfigMode(): Promise<void>;
sendCommand(command: string): Promise<CommandResult>;
sendConfig(commands: string[]): Promise<CommandResult>;
getCurrentConfig(): Promise<CommandResult>;
saveConfig(): Promise<CommandResult>;
rebootDevice(): Promise<CommandResult>;
protected sanitizeOutput(output: string, command: string): string;
isInConfigMode(): boolean;
}