Skip to content

pyang and pyangbind UNUSED_IMPORT error #3

Description

@xijq227

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions