[erlang-questions] snmpc: Compiling LLDP-MIB failled
Wed Mar 15 12:49:11 CET 2017
That was indeed fast Martin. =）
For now I could live with restructuring LLDP-MIB though.
And bug reported here: ERL-375 <https://bugs.erlang.org/browse/ERL-375>.
2017-03-15 18:06 GMT+08:00 Martin Bjorklund <mbj@REDACTED>:
> fxmy wang <fxmywc@REDACTED> wrote:
> > 2017-03-14 22:53 GMT+08:00 Raimo Niskanen <
> > raimo+erlang-questions@REDACTED>:
> > > I have now tried with the 'smilint' tool and it does not find any
> > > so this is probably a legitimate way to write a MIB.
> > >
> > > If so our MIB compiler needs to be rewritten to do two passes; one
> > > anything not augmented, and one handling augmentation.
> We have a fix for this bug in our (forked) snmp implementation. A
> patch is included if you're interested. The idea is that the
> definitions are sorted so that any augment ends up after the augment
> target; then the processing can be left as-is.
> Unfortunately the code is not 100% correct; specifically it puts the
> definition after the MODULE-COMPLIANCE so the compiler later complains
> that the compliance reference is invalid (which is not correct (but it
> works for us)).
> In order to be really correct, the code needs to be completely
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions