Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

IPv6 Support in Python Automation Scripts

Starting in Junos OS Release 19.3R1, devices running Junos OS with upgraded FreeBSD support using IPv6 in Python automation scripts, including commit, event, op, and SNMP scripts, Juniper Extension Toolkit (JET) scripts, and YANG action scripts. IPv6 support enables Python automation scripts to establish connections and perform operations using IPv6 addresses.

For example, the following op script uses Junos PyEZ to connect to the host at the specified IPv6 address and print the device hostname and information about the ge-0/0/0 interface. The script retrieves the username from the script inputs and prompts for the user’s password.

To execute the script, configure the language python or language python3 statement and the script filename.

When you execute the script, it prints the hostname of the remote device and information about the ge-0/0/0 interface.