Module: TrainPlugins::Juniper::Constants

Defined in:
lib/train-juniper/constants.rb

Overview

Common constants used across the plugin

Constant Summary collapse

DEFAULT_SSH_PORT =

SSH Configuration

22
PORT_RANGE =
(1..65_535)
SSH_KEEPALIVE_INTERVAL =
60
SSH_KEEPALIVE_MAX_COUNT =
3
DEFAULT_LOG_LEVEL =

Logging Configuration

Logger::WARN
STANDARD_SSH_OPTIONS =

Standard SSH Options for network devices

{
  'UserKnownHostsFile' => '/dev/null',
  'StrictHostKeyChecking' => 'no',
  'LogLevel' => 'ERROR',
  'ForwardAgent' => 'no'
}.freeze
CLI_PROMPT =

JunOS CLI Prompt Patterns

/[%>$#]\s*$/
CONFIG_PROMPT =
/[%#]\s*$/
CONFIG_PATH_PATTERN =

File Path Patterns

%r{/config/(.*)}
OPERATIONAL_PATH_PATTERN =
%r{/operational/(.*)}
UPLOAD_NOT_SUPPORTED =

Error Messages

'File operations not supported for Juniper devices - use command-based configuration'
DOWNLOAD_NOT_SUPPORTED =
'File operations not supported for Juniper devices - use run_command() to retrieve data'