yang-modules (NETCONF)
Syntax
yang-modules { device-specific; emit-anyxml-in-rpc-output; emit-extensions; emit-family-ns-and-module-name; }
Hierarchy Level
[edit system services netconf]
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
Note:
Starting in Junos OS Release 23.1R1, the YANG data models for Junos
RPCs replace the |
emit-extensions |
Instruct the device to generate YANG data models that explicitly include Junos OS extension statements. Note:
The device emits the |
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
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.