marvin-zhao / pyang

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

Warns of imported module not used even when a symlink'd leaf exists for the imported module. #88

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Symlink a leaf in one module to an imported module.
2. Parse the module that includes the import definition.

eg; 

...
import SNMPv2-MIB {
       prefix mib2;
     }
...
tailf:symlink contact {
        tailf:path "/mib2:SNMPv2-MIB/mib2:system/mib2:sysContact"; 
 }

//tailf-common.yang
extension symlink {
  argument name {
    tailf:arg-type {
      type tailf:identifier;
    }
  }
...

What is the expected output? What do you see instead?
Should parse the yang provided the symlinks are valid.  The error is:
test.yang:27: warning: imported module SNMPv2-MIB not used

What version of the product are you using? On what operating system?
v1.3 on CentOS 6.3 (python 2.7.3)

Original issue reported on code.google.com by marklggt...@gmail.com on 1 May 2013 at 4:42

GoogleCodeExporter commented 9 years ago
This would be a tail-f specific enhancement; generic pyang does not know about 
tailf:symlink.

Original comment by mbj4...@gmail.com on 23 Oct 2013 at 1:42