What’s Changed in Release 21.1R1
Junos XML API and Scripting
-
The
jcs:invoke()
function supports suppression of root login and logout events in system log files for SLAX commit scripts (ACX Series, EX Series, MX Series, PTX Series, QFX Series, and SRX Series)—Thejcs:invoke()
extension function supports theno-login-logout
parameter in SLAX commit scripts. If you include the parameter, the function does not generate and logUI_LOGIN_EVENT
andUI_LOGOUT_EVENT
messages when the script logs in as root to execute the specified remote procedure call (RPC). If you omit the parameter, the function behaves as in earlier Junos OS releases in which the rootUI_LOGIN_EVENT
andUI_LOGOUT_EVENT
messages are included in system log files. -
The
jcs:invoke()
function supports suppression of root login and logout events in system log files for SLAX event scripts (ACX Series, EX Series, MX Series, PTX Series, QFX Series, and SRX Series)—Thejcs:invoke()
extension function supports theno-login-logout
parameter in SLAX event scripts. If you include the parameter, the function does not generate and logUI_LOGIN_EVENT
andUI_LOGOUT_EVENT
messages when the script logs in as root to execute the specified remote procedure call (RPC). If you omit the parameter, the function behaves as in earlier releases in which the rootUI_LOGIN_EVENT
andUI_LOGOUT_EVENT
messages are included in system log files. -
Python 2.7 deprecation (ACX Series, EX Series, MX Series, PTX Series, QFX Series, SRX Series, vMX, and vSRX)—Starting in Junos OS Release 21.1R1, devices running Junos OS no longer support Python 2.7. We've deprecated the corresponding
language python
statement at the[edit system scripts]
hierarchy level. To execute Python scripts, configure thelanguage python3
statement at the[edit system scripts]
hierarchy level to execute the scripts using Python 3.[See Understanding Python Automation Scripts for Devices Running Junos OS.]
Network Management and Monitoring
-
Support for specifying the YANG modules to advertise in the NETCONF capabilities and supported schema list (ACX Series, EX Series, MX Series, PTX Series, QFX Series, and SRX Series)—You can configure devices to advertise third-party, standard, and Junos OS native YANG modules in the capabilities exchange of a NETCONF session by configuring the appropriate statements at the
[edit system services netconf hello-message yang-module-capabilities]
hierarchy level. In addition, you can specify the YANG schemas that the NETCONF server should include in its list of supported schemas by configuring the appropriate statements at the[edit system services netconf netconf-monitoring netconf-state-schemas]
hierarchy level.[See hello-message and netconf-monitoring.]
-
Support for disconnecting unresponsive NETCONF-over-SSH clients (ACX Series, EX Series, MX Series, NFX Series, PTX Series, QFX Series, SRX Series, vMX, and vSRX)—You can enable devices to automatically disconnect unresponsive NETCONF-over-SSH clients by configuring the
client-alive-interval
andclient-alive-count-max
statements at the[edit system services netconf ssh]
hierarchy level. Theclient-alive-interval
statement specifies the timeout interval in seconds, after which, if no data has been received from the client, the device requests a response. Theclient-alive-count-max
statement specifies the threshold of missed client-alive responses that triggers the device to disconnect the client, thereby terminating the NETCONF session.[See ssh (NETCONF).]
User Interface and Configuration
Verbose format option to export JSON configuration data (ACX Series, EX Series, MX
Series, PTX Series, QFX Series, and SRX Series)—The Junos OS CLI exposes the
verbose
statement at the [edit system export-format
json]
hierarchy level. We changed the default format to export
configuration data in JSON from verbose
to ietf
starting in Junos OS Release 16.1R1. You can explicitly specify the default export
format for JSON configuration data by configuring the appropriate statement at the
[edit system export-format json]
hierarchy level. Although the
verbose
statement is exposed in the Junos OS CLI as of the
current release, you can configure this statement starting in Junos OS Release
16.1R1.
[See export-format.]