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)
23 lines (22 loc) • 1.16 kB
TypeScript
import { BaseConnection, DeviceCredentials, CommandResult } from '../base-connection';
export declare class PaloAltoConnection extends BaseConnection {
private inConfigMode;
constructor(credentials: DeviceCredentials);
sessionPreparation(): Promise<void>;
private createPaloAltoShellChannel;
protected setTerminalWidth(): Promise<void>;
protected disablePaging(): Promise<void>;
protected setScriptingMode(): Promise<void>;
protected setBasePrompt(): Promise<void>;
protected enterConfigMode(): Promise<void>;
protected exitConfigMode(): Promise<void>;
sendCommand(command: string): Promise<CommandResult>;
sendConfig(configCommands: string[]): Promise<CommandResult>;
commit(comment?: string, force?: boolean, partial?: boolean, deviceAndNetwork?: boolean, policyAndObjects?: boolean, vsys?: string, noVsys?: boolean): Promise<CommandResult>;
getCurrentConfig(): Promise<CommandResult>;
saveConfig(): Promise<CommandResult>;
rebootDevice(): Promise<CommandResult>;
protected sanitizeOutput(output: string, command: string): string;
isInConfigMode(): boolean;
cleanup(): Promise<void>;
}