marvin-zhao / pyang

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

Problem with uniqueness of the type identifiers within one namespace #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
According to the specification:
All derived type names defined within a parent node or at the top-level of
the module or its submodules share the same type identifier namespace. 
This namespace is scoped to the parent node or module. All identifiers
defined in a namespace MUST be unique.

I define a module and its submodule. At the top-level of the module and the
submodule I declare types with the same name. So, according to the
specification they share the same namespace. Since it's not allowed to
define types with the same name within one namespace, the validation of the
module should end up with an error. But while validating such a test case,
pyang consider it to be correct. Please, find test case files attached.

What version of the product are you using? On what operating system?
pyang 0.9.3

Original issue reported on code.google.com by kur...@gmail.com on 16 Apr 2009 at 1:46

Attachments:

GoogleCodeExporter commented 9 years ago
I have reproduced the problem.

Original comment by mbj4...@gmail.com on 16 Apr 2009 at 2:21

GoogleCodeExporter commented 9 years ago

Original comment by mbj4...@gmail.com on 21 Apr 2009 at 8:26