Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

yang-modules (NETCONF)

Syntax

Hierarchy Level

Description

Configure how the device running Junos OS serves the native YANG modules.

Default

If you do not include the yang-modules statement, the device running Junos OS serves the family-specific YANG data models that are shipped with the device.

Options

device-specific

Instruct the device to generate device-specific YANG data models instead of the family-specific YANG data models that are shipped with the device.

emit-anyxml-in-rpc-output

Instruct the device to generate YANG data models that use the anyxml statement in the Junos RPC output schemas. To configure this statement, you must also configure the device-specific statement.

Note:

Starting in Junos OS Release 23.1R1, the YANG data models for Junos RPCs replace the anyxml statement with accurate output schemas.

emit-extensions

Instruct the device to generate YANG data models that explicitly include Junos OS extension statements.

Note:

The device emits the junos:command extension statement starting in Junos OS Release 22.4R1 and Junos OS Evolved Release 22.4R1.

emit-family-ns-and-module-name

Instruct the device to generate YANG data models that use the original device family identifier in the module's name, namespace, and filename. To configure this statement, you must also configure the device-specific statement.

This statement is only applicable on devices where the default device family identifier changed from one release to the next.

Required Privilege Level

system—To view this statement in the configuration.

system-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 17.4R1.

emit-anyxml-in-rpc-output statement added in Junos OS Release 23.1R1.

emit-family-ns-and-module-name statement added in Junos OS Evolved Release 23.4R1.