Author: | Martin Komon |
---|
parameter | required | default | choices | comments |
---|---|---|---|---|
dest_ip | yes | Destination IPv4 address or hostname | ||
interface | no | Interface used to send traffic out | ||
max_range | no | 512 | Max range of path MTU discovery. Must be 2^n. | |
max_size | no | 1472 | Start and max size for path MTU discovery. | |
mode | no | None | mode of console connection (telnet/serial). If mode is not provided SSH connection is used. | |
passwd | no | assumes ssh-key active | Login password | |
port | no | 830 | port number to use when connecting to the device | |
routing_instance | no | Name of the routing instance to use to send the ping | ||
source_ip | no | Source IPv4 address used to send the ping | ||
ssh_private_key_file | no | None | This can be used if you need to provide a private key rather than loading the key into the ssh-key-ring/environment. if your ssh-key requires a password, then you must provide it via **passwd** | |
timeout | no | 0 | Extend the NETCONF RPC timeout beyond the default value of 30 seconds. Set this value to accommodate pings that might take longer than the default timeout interval. | |
user | no | $USER | Login username |
Note
Requires junos-eznc >= 1.2.2
# Simple example
tasks:
- name: "Check MTU on backup circuit"
junos_pmtud:
host={{ junos_host }}
port={{ netconf_port }}
user={{ ansible_ssh_user }}
passwd={{ ansible_ssh_pass }}
dest_ip=8.8.8.8
# Using more parameters
tasks:
- name: "Check MTU on backup circuit"
junos_pmtud:
host={{ junos_host }}
port={{ netconf_port }}
user={{ ansible_ssh_user }}
passwd={{ ansible_ssh_pass }}
dest_ip=8.8.8.8
routing_instance=internet
max_range=128