Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

request system yang update

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
request system yang update package-name action-script [scripts] deviation-module [modules] module [modules] proxy-xml [file-path-names] translation-script [scripts]

Description

Update an existing YANG package to include new or modified YANG modules or scripts, and merge the updated data models in that package with the Junos OS schema.

When you update a package, the device stores copies of the new and modified module and script files. Junos OS then rebuilds its schema to include the changes to the data models and validates the active configuration against this schema.

Note:

Devices that use the ephemeral configuration database will delete all ephemeral configuration data in the process of rebuilding the schema.

Note:

To prevent CLI-related or configuration database errors, we recommend that you do not perform any CLI operations, change the configuration, or terminate the operation while a device is in the process of adding, updating, or deleting a YANG package and modifying the schema.

Note:

Starting in Junos OS Release 18.3R1, adding, deleting, or updating YANG packages in configuration mode with the run command is not supported.

Options

package-name

Name of the YANG package to update.

action-script [scripts]

List of paths for one or more action scripts to add to or update in the package.

deviation-module [modules]

List of paths for one or more deviation modules to add to or update in the package.

module [modules]

List of paths for one or more YANG modules to add to or update in the package.

proxy-xml [file-path-names]

List of paths for one or more YANG modules to add to or update in the package that provide user-defined OpenConfig mappings for the XML Proxy process to translate Junos Telemetry Interface statistics exported through gRPC into key-value pairs.

translation-script [scripts]

List of paths for one or more translation scripts to add to or update in the package.

Required Privilege Level

maintenance

Sample Output

request system yang update

content_copy zoom_out_map
user@host> request system yang update p1 module yang/if.yang

YANG modules validation : START
YANG modules validation : SUCCESS
TLV generation: START
TLV generation: SUCCESS
Building schema and reloading /config/juniper.conf.gz ...
Activating /config/juniper.conf.gz ...
mgd: commit complete
Restarting mgd ...

WARNING: cli has been replaced by an updated version:
CLI release 16.1R1 built by builder on 2016–03–30 13:46:11 UTC
Restart cli using the new version ? [yes,no] (yes) yes

Restarting cli ...

Release Information

Command introduced in Junos OS Release 16.1R1.

proxy-xml option introduced in Junos OS Release 17.3R1 on MX Series and PTX Series routers.

footer-navigation