marvin-zhao / pyang

Automatically exported from code.google.com/p/pyang
0 stars 0 forks source link

If the target node is in another module, then nodes added by the augmentation MUST NOT be mandatory nodes #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In Section 7.15. "The augment Statement" of the draft there is a statement:

"If the target node is in another module, then nodes added by the
augmentation MUST NOT be mandatory nodes (see Section 3.1)."

It seems that in the current version of pyang there is no such validation.
See the attached examples. The module ns2 augments the container "c" in the
module ns1 by adding a couple of mandatory nodes. But pyang does not report
these errors.

Original issue reported on code.google.com by kur...@gmail.com on 20 Feb 2010 at 11:25

Attachments:

GoogleCodeExporter commented 9 years ago
Why is this CLR needed?

Original comment by lada.lho...@gmail.com on 7 May 2010 at 9:54

GoogleCodeExporter commented 9 years ago
B/c otherwise a client that happily implements an application to configure 
module A
will not work if module B augments A with some mandatory stuff, and the device
supports both A and B.

Original comment by mbj4...@gmail.com on 7 May 2010 at 10:40

GoogleCodeExporter commented 9 years ago

Original comment by mbj4...@gmail.com on 10 May 2010 at 11:54