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

    request system yang validate

    Syntax

    request system yang validate action-script [scripts] module [modules] proxy-xml module [modules] 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

    Validate the syntax of one or more YANG modules, translation scripts, or action scripts.

    Options

    action-script scriptsList of paths for one or more action scripts to validate.
    module modulesList of paths for one or more YANG modules to validate.
    proxy-xml module modulesList of paths for one or more YANG modules to validate 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 scriptsList of paths for one or more translation scripts to validate.

    Required Privilege Level

    maintenance

    Sample Output

    request system yang validate

    user@host> request system yang validate module [yang/if.yang yang/if-aggregate.yang] translation-script translation/if.slax
    YANG modules validation : START
    YANG modules validation : SUCCESS
    Scripts syntax validation : START
    script check succeeds
    Scripts syntax validation : SUCCESS
    

    Modified: 2017-08-09