parameter |
type |
required |
default |
choices |
comments |
attempts
|
int |
no |
10 |
|
The number of times to try connecting and logging in to the Junos device. This option is only applicable when using mode = 'telnet' or mode = 'serial' . Mutually exclusive with the console option.
|
baud
|
int |
no |
9600 |
|
The serial baud rate, in bits per second, used to connect to the Junos device. This option is only applicable when using mode = 'serial' . Mutually exclusive with the console option.
|
console
|
str |
no |
none |
|
An alternate method of specifying a NETCONF over serial console connection to the Junos device using Telnet to a console server. The value of this option must be a string in the format --telnet <console_hostname>,<console_port_number> . This option is deprecated. It is present only for backwards compatibility. The string value of this option is exactly equivalent to specifying host with a value of <console_hostname> , mode with a value of telnet , and port with a value of <console_port_number> . Mutually exclusive with the mode, port, baud, and attempts options.
|
host
|
str |
yes |
{{ inventory_hostname }} |
|
The hostname or IP address of the Junos device to which the connection should be established. This is normally the Junos device itself, but is the hostname or IP address of a console server when connecting to the console of the device by setting the mode option to the value telnet . This option is required, but does not have to be specified explicitly by the user because it defaults to {{ inventory_hostname }} .
aliases: hostname, ip
|
mode
|
str |
no |
none |
|
The PyEZ mode used to establish a NETCONF connection to the Junos device. A value of none uses the default NETCONF over SSH mode. Depending on the values of the host and port options, a value of telnet results in either a direct NETCONF over Telnet connection to the Junos device, or a NETCONF over serial console connection to the Junos device using Telnet to a console server. A value of serial results in a NETCONF over serial console connection to the Junos device. Mutually exclusive with the console option.
|
passwd
|
str |
no |
The first defined value from the following list 1) The ANSIBLE_NET_PASSWORD environment variable. (used by Ansible Tower) 2) The value specified using the -k or --ask-pass command line arguments to the ansible or ansible-playbook command. 3) none (An empty password/passphrase) |
|
The password, or ssh key's passphrase, used to authenticate with the Junos device. If this option is not specified, authentication is attempted using an empty password, or ssh key passphrase.
aliases: password
|
port
|
int or str |
no |
830 if mode = none , 23 if mode = 'telnet' , '/dev/ttyUSB0' if (mode = 'serial') |
|
The TCP port number or serial device port used to establish the connection. Mutually exclusive with the console option.
|
provider
|
dict |
no |
|
|
An alternative syntax for specifying the connection options. Rather than specifying each connection-related top-level option, the connection-related options may be specified as a dictionary of suboptions to the provider option. All connection-related options must either be specified as top-level options or as suboptions of the provider option. You can not combine the two methods of specifying connection-related options.
|
Dictionary object provider
parameter |
type |
required |
default |
choices |
comments |
baud
|
int |
no |
9600 |
|
The serial baud rate, in bits per second, used to connect to the Junos device. This option is only applicable when using mode = 'serial' . Mutually exclusive with the console option.
|
attempts
|
int |
no |
10 |
|
The number of times to try connecting and logging in to the Junos device. This option is only applicable when using mode = 'telnet' or mode = 'serial' . Mutually exclusive with the console option.
|
console
|
str |
no |
none |
|
An alternate method of specifying a NETCONF over serial console connection to the Junos device using Telnet to a console server. The value of this option must be a string in the format --telnet <console_hostname>,<console_port_number> . This option is deprecated. It is present only for backwards compatibility. The string value of this option is exactly equivalent to specifying host with a value of <console_hostname> , mode with a value of telnet , and port with a value of <console_port_number> . Mutually exclusive with the mode, port, baud, and attempts options.
|
passwd
|
str |
no |
The first defined value from the following list 1) The ANSIBLE_NET_PASSWORD environment variable. (used by Ansible Tower) 2) The value specified using the -k or --ask-pass command line arguments to the ansible or ansible-playbook command. 3) none (An empty password/passphrase) |
|
The password, or ssh key's passphrase, used to authenticate with the Junos device. If this option is not specified, authentication is attempted using an empty password, or ssh key passphrase.
|
ssh_config
|
path |
no |
|
|
The path to the SSH client configuration file. If this option is not specified, then the PyEZ Device instance by default queries file ~/.ssh/config.
|
host
|
str |
yes |
{{ inventory_hostname }} |
|
The hostname or IP address of the Junos device to which the connection should be established. This is normally the Junos device itself, but is the hostname or IP address of a console server when connecting to the console of the device by setting the mode option to the value telnet . This option is required, but does not have to be specified explicitly by the user because it defaults to {{ inventory_hostname }} .
|
mode
|
str |
no |
none |
|
The PyEZ mode used to establish a NETCONF connection to the Junos device. A value of none uses the default NETCONF over SSH mode. Depending on the values of the host and port options, a value of telnet results in either a direct NETCONF over Telnet connection to the Junos device, or a NETCONF over serial console connection to the Junos device using Telnet to a console server. A value of serial results in a NETCONF over serial console connection to the Junos device. Mutually exclusive with the console option.
|
timeout
|
int |
no |
30 |
|
The maximum number of seconds to wait for RPC responses from the Junos device. This option does NOT control the initial connection timeout value.
|
ssh_private_key_file
|
path |
no |
The first defined value from the following list 1) The ANSIBLE_NET_SSH_KEYFILE environment variable. (used by Ansible Tower) 2) The value specified using the --private-key or --key-file command line arguments to the ansible or ansible-playbook command. 3) none (the file specified in the user's SSH configuration, or the operating-system-specific default) |
|
The path to the SSH private key file used to authenticate with the Junos device. If this option is not specified, and no default value is found using the algorithm below, then the SSH private key file specified in the user's SSH configuration, or the operating-system-specific default is used.
|
port
|
int or str |
no |
830 if mode = none , 23 if mode = 'telnet' , '/dev/ttyUSB0' if (mode = 'serial') |
|
The TCP port number or serial device port used to establish the connection. Mutually exclusive with the console option.
|
user
|
str |
yes |
The first defined value from the following list 1) The ANSIBLE_NET_USERNAME environment variable. (used by Ansible Tower) 2) The remote_user as defined by Ansible. Ansible sets this value via several methods including a) -u or --user command line arguments to the ansible or ansible-playbook command. b) ANSIBLE_REMOTE_USER environment variable. c) remote_user configuration setting. See the Ansible documentation for the precedence used to set the remote_user value. 3) The USER environment variable. |
|
The username used to authenticate with the Junos device. This option is required, but does not have to be specified explicitly by the user due to the algorithm for determining the default value.
|
|
ssh_config
|
path |
no |
|
|
The path to the SSH client configuration file. If this option is not specified, then the PyEZ Device instance by default queries file ~/.ssh/config.
|
ssh_private_key_file
|
path |
no |
The first defined value from the following list 1) The ANSIBLE_NET_SSH_KEYFILE environment variable. (used by Ansible Tower) 2) The value specified using the --private-key or --key-file command line arguments to the ansible or ansible-playbook command. 3) none (the file specified in the user's SSH configuration, or the operating-system-specific default) |
|
The path to the SSH private key file used to authenticate with the Junos device. If this option is not specified, and no default value is found using the algorithm below, then the SSH private key file specified in the user's SSH configuration, or the operating-system-specific default is used.
aliases: ssh_keyfile
|
timeout
|
int |
no |
30 |
|
The maximum number of seconds to wait for RPC responses from the Junos device. This option does NOT control the initial connection timeout value.
|
user
|
str |
yes |
The first defined value from the following list 1) The ANSIBLE_NET_USERNAME environment variable. (used by Ansible Tower) 2) The remote_user as defined by Ansible. Ansible sets this value via several methods including a) -u or --user command line arguments to the ansible or ansible-playbook command. b) ANSIBLE_REMOTE_USER environment variable. c) remote_user configuration setting. See the Ansible documentation for the precedence used to set the remote_user value. 3) The USER environment variable. |
|
The username used to authenticate with the Junos device. This option is required, but does not have to be specified explicitly by the user due to the algorithm for determining the default value.
aliases: username
|