pyang and pyangbind UNUSED_IMPORT error
Opened this issue · 0 comments
xijq227 commented
Hi Juniper team
attempted to validate 18.2R1\junos\conf\junos-conf-root@2018-01-01.yang
with pyang 1.7.5
.
$ pyang yang_modules/18.2R1/junos/conf/junos-conf-interfaces\@2018-01-01.yang -p ./yang_modules/
yang_modules/18.2R1\junos\conf\junos-conf-root@2018-01-01.yang:10: warning: imported module junos-common-types not used
in addition, attempted to generate a python class with pybind plugin:
$ pyang --plugindir env/lib/site-packages/pyangbind/plugin -f pybind -p ./yang_modules yang_modules/18.2R1/junos/conf/junos-conf-interfaces\@2018-01-01.yang -o pybindings/junos_conf_interfaces.py --yang-remove-unused-imports
INFO: encountered (<pyang.error.Position object at 0x0000000007071CA8>, 'UNUSED_IMPORT', u'junos-common-types')
yang_modules\18.2R1\junos\conf\junos-conf-root@2018-01-01.yang:10: warning: imported module junos-common-types not used