Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    request system yang update

    Syntax

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

    Release Information

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

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

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

    proxy-xml option introduced in Junos OS Release 17.3 on MX Series and PTX 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.

    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
    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 ...
    

    Modified: 2017-08-09