Closed pheller closed 1 year ago
There is a covering test, though it appears to expect the following to be within the response:
<interface><name>eth1</name><mtu>1500</mtu><status>ok</status></interface>
I think mtu
should be omitted and status
retained per RFC 6243 2.3.1:
2.3.1. 'explicit' Basic Mode Retrieval
When data is retrieved from a server using the 'explicit' basic mode, and the
parameter is not present, data nodes MUST be reported if explicitly set by the client, even if they contain the schema default value. Non-configuration data nodes containing the schema default value MUST be reported.
Fixed and merged, please verify
Looks good to me. Thanks!
Clixon reports
However, a
get-config
rpc that omits thewith-defaults
element seems to contain default data:And from the YANG:
However, if I repeat the same
get-config
and include thewith-defaults
attribute with a value matching the server-advertised basic-mode, the response is as expected:yields: