|
On 6/26/2018 2:11 PM, Juergen
Schoenwaelder wrote:
BALAZS: https://tools.ietf.org/html/rfc7950#section-5.2 states:On Tue, Jun 26, 2018 at 01:58:44PM +0200, Balazs Lengyel wrote:Thanks for the comments and support. See answers below. Balazs YANG modules and submodules are typically stored in files, one "module" or "submodule" statement per file.To me this means it is allowed to have multiple module statements in a file, multiple YANG modules in a file. AM I wrong? BALAZS: "stuff" in this case would be an instance-data-set formatted according to this draft and used as an example in some other draft/RFC. As I understand the use case: this could be extracted by some tool and validated against this draft for the format of the instance-data-set and validated against the YANG modules used by the instance data inside. See attachment as an example. However the use case came from Rob, so he might know better. BALAZS: Please explain. In the normal case an instance-data-set is a standalone instance-data-file that is not part of any artwork. Where can I see the artwork wrapping solution? I just wanted to be liberal, to make writing and reading easy, so I would allow both <myleaf>23.3</myleaf> and <myleaf> 23.3 </myleaf> unless the data is of type string in which case the whitespace has an actual meaning. BALAZS: Maybe, please help here. If I have a leaf defined as an integer, is the following XML correct as a YANG based XML representation? <myleaf> 23.3 </myleaf> There is whitespace before and after the number. I did not find in RFC7950 whether this is allowed. BALAZS: Ask Rob, it was his idea :-) But seriously we would first need to define what backwards compatibility means in this case and who would use the version number. I think its worth thinking about, but at this point I don't have a good use case or solution. /js -- Balazs Lengyel Ericsson Hungary Ltd. Senior Specialist Mobile: +36-70-330-7909 email: [email protected] |
<t><CODE BEGINS> file "acme-router-modules.yid"</t>
<figure align="center" anchor="Xml-Instance-Data-File-example" title="XML
Instance Data File example">
<artwork align="left"><![CDATA[
<instance-data-set xmlns=
"urn:ietf:params:xml:ns:yang:ietf-yang-instance-data"
<name>acme-router-modules</name>
<revision>2108-01-25</revision>
<description>Defines the minimal set of modules that any acme-router
will contain. These modules will always be present.</description>
<contact>[email protected]</contact>
<instance-data>
<yang-library xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-library">
<module-set>
<name>basic</name>
<module>
<name>ietf-system</>
<revision>2014-08-06</revision>
<!-- description "A later revision may be used."; -->
<namespace>urn:ietf:params:xml:ns:yang:ietf-system</namespace>
<feature>authentication</feature>
<feature>radius-authentication</feature>
</module>
</module-set>
</yang-library>
</instance-data>
</instance-data-set>
]]></artwork>
</figure>
<t><CODE ENDS></t>
_______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
