marvin-zhao / pyang

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

Extension defined in a submodule is not available in the module #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Let's look at the example: in a submodule I define an extension, then I
want to use this extension in the module which includes the submodule:

% composite.yang module
module composite {
    namespace "urn:test:composite";
    prefix c;

    include submodule;    

    c:ext1 "test"; // pyang error
}

% submodule.yang
submodule submodule {
    belongs-to composite {
    prefix c; 
    }
    extension ext1 {
        argument test;
    }
    c:ext1 "test arg";
}

But when I validate the composite module by pyang I receive an error
message: "composite.yang:7: error: extension "ext1" is not defined in
module composite"

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:26

Attachments:

GoogleCodeExporter commented 9 years ago
This bug is fixed in the SVN version of pyang.

Original comment by mbj4...@gmail.com on 16 Apr 2009 at 1:44