request system yang update

 

Syntax

Release Information

Command introduced in Junos OS Release 16.1R1 on MX Series and T Series routers.

Command introduced in Junos OS Release 17.1R1 on EX Series and QFX Series switches and PTX Series routers.

Command introduced in Junos OS Release 17.3R1 on SRX345, SRX1500, SRX4100, SRX4200, SRX5400, SRX5600, and SRX5800 devices and vSRX instances.

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

Command introduced in Junos OS Release 18.1R1 on ACX Series routers.

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

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

Note

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

Options

package-nameName 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

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