yang-compliant (NETCONF)
语法
yang-compliant;
层次结构级别
[edit system services netconf]
描述
要求 NETCONF 服务器返回与设备 YANG 方案和 RFC 6020、 YANG 一致的与 YANG 兼容的配置数据 - 网络配置协议 (NETCONF) 的数据建模语言。
注意:
您必须配置语 yang-compliant
句以启用 OpenDaylight (ODL) 控制器来管理运行 Junos OS 的设备。
配置yang-compliant
语句时,<get-config>
<get-configuration format="xml">
远程过程调用 (RPC) 包括其输出的以下更改:
-
抑制在 YANG 模式中未为该设备(
<undocumented>
元素)定义的不支持的配置语句。这不会抑制弃用的语句。 -
抑制配置注释(
<junos:comment>
元素)。 -
根据 YANG 模式对定义
choice-ident
和choice-value
用作密钥的配置语句序列化列表密钥。 -
根据 RFC 7952 编码的 Emit YANG 注释。
表 1 说明了和 <get-configuration format="xml">
RPC 输出的变化<get-config>
。
更改 | 默认输出 | 符合yang 合规输出 |
---|---|---|
抑制 |
<processes> <ntp> <undocumented> <enable/> </undocumented> </ntp> </processes> |
<processes> <ntp> </ntp> </processes> |
抑制 |
<junos:comment>/* CustA */ </junos:comment> <route> <name>198.51.100.1/24 </name> <next-hop>10.1.1.254 </next-hop> <retain/> <no-readvertise/> </route> |
<route> <name>198.51.100.1/24 </name> <next-hop>10.1.1.254 </next-hop> <retain/> <no-readvertise/> </route> |
正确序列化 |
<route-filter> <address>0.0.0.0/0 </address> <prefix-length-range>/32-/32 </prefix-length-range> </route-filter> |
<route-filter> <address>0.0.0.0/0 </address> <choice-ident>prefix-length-range </choice-ident> <choice-value>/32-/32 </choice-value> </route-filter> |
所需权限级别
系统 — 要在配置中查看此语句。
系统控制 — 要将此语句添加到配置中。
发布信息
Junos OS 17.3 版中引入的语句。