Validate xml against YANG model: Invalid identityref error #2176
-
Hello Team, yanglint openconfig-platform.yang hardware_small.xml
hardware_small.xml
openconfig-platform.yang
openconfig-platform-types.yang
yanglint -v |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I would hope the message is clear
Because the identity <components xmlns="http://openconfig.net/yang/platform">
<component>
<name>Rack 0</name>
<state>
<oper-status xmlns:oct="http://openconfig.net/yang/platform-types">oct:ACTIVE</oper-status>
</state>
</component>
</components> |
Beta Was this translation helpful? Give feedback.
-
Even according to YANG, you have to specify both the module and the identity name. If for no other reason, then because there may be name collisions.
I guess, the generated RPC request is simply invalid. |
Beta Was this translation helpful? Give feedback.
Even according to YANG, you have to specify both the module and the identity name. If for no other reason, then because there may be name collisions.
I guess, the generated RPC request is simply invalid.