pyang and pyangbind UNUSED_IMPORT error

Aperta
#3 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
tooling

Direzione di ricerca

Start by reproducing the reported validation and pybind generation commands with pyang 1.7.5 on [email protected]. Check why the junos-common-types import is reported as unused and how --yang-remove-unused-imports handles the warning. Done means the reported behavior is understood and the command completes without the unexpected UNUSED_IMPORT result.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Nessun dato sulla lingua
Stelle
116
Fork
39
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Juniper/yang

Tutte le issue di Juniper/yang

Issue simili

Altre issue su DevTools

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.