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)
36 lines (35 loc) • 1.34 kB
TypeScript
import { BaseConnection, DeviceCredentials, CommandResult } from '../base-connection';
export declare class FortinetConnection extends BaseConnection {
private vdoms;
private osVersion;
private originalOutputMode;
private outputMode;
private inConfigGlobal;
constructor(credentials: DeviceCredentials);
private setupFortiGateAlgorithms;
sessionPreparation(): Promise<void>;
private createFortinetShellChannel;
private handleBanner;
protected setBasePrompt(): Promise<void>;
private detectVDOMs;
private determineOSVersion;
private detectOutputMode;
private getOutputModeV6;
private getOutputModeV7;
private enterConfigGlobal;
private exitConfigGlobal;
protected disablePaging(): 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;
protected enterConfigMode(): Promise<void>;
protected exitConfigMode(): Promise<void>;
isInConfigMode(): boolean;
cleanup(): Promise<void>;
hasVDOMs(): boolean;
getOSVersion(): string;
getOutputMode(): string;
}