|
Hello, Recently we came up against a problem where a certain implementation did not accept the following: <with-defaults xmlns="...">
report-all
</with-defaults>
while it did accept <with-defaults xmlns="...">report-all</with-defaults> I am unsure whether YANG's XML encoding allows whitespace before and after a leaf's value? In RFC7950 it does not say yes or no. I have found the following examples that seem to allow preceding/following whitespace: https://tools.ietf.org/html/rfc7950#section-4.2.9 <status xmlns="http://example.com/system"> The image example-fw-2.3 is being installed. </status> https://tools.ietf.org/html/rfc7950#section-7.16.3 <reporting-entity>
/ex:interface[ex:name='Ethernet0']
</reporting-entity>
https://tools.ietf.org/html/rfc6243#appendix-A.3.1 <with-defaults
xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults">
report-all
</with-defaults>
It is problematic that this is not clarified. IMHO this should be clarified in an errata to rfc7950. Chose one:
What do you think? regards Balazs -- Balazs Lengyel Ericsson Hungary Ltd. Senior Specialist Mobile: +36-70-330-7909 email: [email protected] |
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
