etingof / pysmi

SNMP MIB parser
http://snmplabs.com/pysmi/
BSD 2-Clause "Simplified" License
135 stars 52 forks source link

Export some more data from MIB #17

Closed etingof closed 6 years ago

etingof commented 7 years ago

This PR adds conditional support for some more of the missing SMIv2 MACRO fields export to pysnmp code generator. Specifically, these are STATUS, REVISION and PRODUCT RELEASE.

Besides that, REFERENCE field treated the same way as DESCRIPTION e.g. only exported if --generate-mib-texts option is in effect.

codecov-io commented 7 years ago

Codecov Report

Merging #17 into master will decrease coverage by 0.13%. The diff coverage is 58.18%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #17      +/-   ##
==========================================
- Coverage    60.8%   60.66%   -0.14%     
==========================================
  Files          30       30              
  Lines        2847     2868      +21     
==========================================
+ Hits         1731     1740       +9     
- Misses       1116     1128      +12
Impacted Files Coverage Δ
pysmi/codegen/jsondoc.py 11.44% <0%> (-0.1%) :arrow_down:
pysmi/codegen/symtable.py 87.86% <100%> (ø) :arrow_up:
pysmi/__init__.py 75% <100%> (ø) :arrow_up:
pysmi/codegen/pysnmp.py 82.33% <90.9%> (-0.72%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9341983...e5c8e80. Read the comment docs.