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 =
Returns Valid port range for SSH connections.
(1..65_535)
- SSH_KEEPALIVE_INTERVAL =
Returns SSH keepalive interval in seconds.
60
- SSH_KEEPALIVE_MAX_COUNT =
Returns Maximum keepalive count before disconnect.
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 =
Returns Pattern matching JunOS configuration mode prompts.
/[%#]\s*$/
- CONFIG_PATH_PATTERN =
File Path Patterns
%r{/config/(.*)}
- OPERATIONAL_PATH_PATTERN =
Returns Pattern for operational data paths.
%r{/operational/(.*)}
- UPLOAD_NOT_SUPPORTED =
Error Messages
'File operations not supported for Juniper devices - use command-based configuration'
- DOWNLOAD_NOT_SUPPORTED =
Returns Error message for unsupported download operations.
'File operations not supported for Juniper devices - use run_command() to retrieve data'