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)
26 lines (25 loc) • 1.05 kB
TypeScript
import { BaseConnection, DeviceCredentials, CommandResult } from '../base-connection';
export declare class CiscoSG300Connection extends BaseConnection {
private inConfigMode;
private inEnableMode;
private enablePassword;
constructor(credentials: DeviceCredentials & {
enablePassword?: string;
});
sessionPreparation(): Promise<void>;
private createSG300ShellChannel;
protected setTerminalSettings(): Promise<void>;
protected setBasePrompt(): Promise<void>;
private checkAndEnterEnableMode;
private enterEnableMode;
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;
isInEnableMode(): boolean;
isInConfigMode(): boolean;
}