n8n-nodes-netdevices
Version:
n8n node to interact with network devices (Cisco, MikroTik, Arista, Extreme Networks, Dell, Juniper, HP, Aruba, Ubiquiti, Palo Alto, Fortinet - ISP, data center, campus, and edge)
25 lines (24 loc) • 1.04 kB
TypeScript
import { BaseConnection, DeviceCredentials, CommandResult } from '../base-connection';
export declare class EricssonConnection extends BaseConnection {
private enablePassword;
private inEnableMode;
private inConfigMode;
constructor(credentials: DeviceCredentials & {
enablePassword?: string;
});
sessionPreparation(): Promise<void>;
private createEricssonShellChannel;
protected setTerminalWidth(): Promise<void>;
protected disablePaging(): Promise<void>;
protected setBasePrompt(): Promise<void>;
private checkAndEnterEnableMode;
private enterEnableMode;
protected enterConfigMode(): Promise<void>;
protected exitConfigMode(): Promise<void>;
sendCommand(command: string): Promise<CommandResult>;
sendConfig(configCommands: string[]): Promise<CommandResult>;
getCurrentConfig(): Promise<CommandResult>;
saveConfig(): Promise<CommandResult>;
rebootDevice(): Promise<CommandResult>;
protected sanitizeOutput(output: string, command: string): string;
}