Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyang and pyangbind UNUSED_IMPORT error #3

Open
xijq227 opened this issue Sep 5, 2018 · 0 comments
Open

pyang and pyangbind UNUSED_IMPORT error #3

xijq227 opened this issue Sep 5, 2018 · 0 comments

Comments

@xijq227
Copy link

xijq227 commented Sep 5, 2018

Hi Juniper team

attempted to validate 18.2R1\junos\conf\[email protected] 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\[email protected]: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\[email protected]:10: warning: imported module junos-common-types not used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant