<div dir="ltr"><div class="markdown-here-wrapper" style=""><p style="margin:0px 0px 1.2em!important">That was indeed fast Martin. =)<br>For now I could live with restructuring LLDP-MIB though.</p>
<p style="margin:0px 0px 1.2em!important">And bug reported here: <a href="https://bugs.erlang.org/browse/ERL-375">ERL-375</a>.</p>
<p style="margin:0px 0px 1.2em!important">Cheers,</p>
<div title="MDH:PGRpdiBjbGFzcz0iZ21haWxfZGVmYXVsdCIgc3R5bGU9ImZvbnQtZmFtaWx5OiBhcmlhbCwgaGVs
dmV0aWNhLCBzYW5zLXNlcmlmOyBmb250LXNpemU6IGxhcmdlOyI+VGhhdCB3YXMgaW5kZWVkIGZh
c3QgTWFydGluLiA977yJPC9kaXY+PGRpdiBjbGFzcz0iZ21haWxfZGVmYXVsdCIgc3R5bGU9ImZv
bnQtZmFtaWx5OiBhcmlhbCwgaGVsdmV0aWNhLCBzYW5zLXNlcmlmOyBmb250LXNpemU6IGxhcmdl
OyI+Rm9yIG5vdyBJIGNvdWxkIGxpdmUgd2l0aCByZXN0cnVjdHVyaW5nIExMRFAtTUlCIHRob3Vn
aC48L2Rpdj48ZGl2IGNsYXNzPSJnbWFpbF9kZWZhdWx0IiBzdHlsZT0iZm9udC1mYW1pbHk6IGFy
aWFsLCBoZWx2ZXRpY2EsIHNhbnMtc2VyaWY7IGZvbnQtc2l6ZTogbGFyZ2U7Ij48YnI+PC9kaXY+
PGRpdiBjbGFzcz0iZ21haWxfZGVmYXVsdCIgc3R5bGU9ImZvbnQtZmFtaWx5OiBhcmlhbCwgaGVs
dmV0aWNhLCBzYW5zLXNlcmlmOyBmb250LXNpemU6IGxhcmdlOyI+QW5kIGJ1ZyByZXBvcnRlZCBo
ZXJlOiBbRVJMLTM3NV0oaHR0cHM6Ly9idWdzLmVybGFuZy5vcmcvYnJvd3NlL0VSTC0zNzUpLjwv
ZGl2PjxkaXYgY2xhc3M9ImdtYWlsX2RlZmF1bHQiIHN0eWxlPSJmb250LWZhbWlseTogYXJpYWws
IGhlbHZldGljYSwgc2Fucy1zZXJpZjsgZm9udC1zaXplOiBsYXJnZTsiPjxicj48L2Rpdj48ZGl2
IGNsYXNzPSJnbWFpbF9kZWZhdWx0IiBzdHlsZT0iZm9udC1mYW1pbHk6IGFyaWFsLCBoZWx2ZXRp
Y2EsIHNhbnMtc2VyaWY7IGZvbnQtc2l6ZTogbGFyZ2U7Ij5DaGVlcnMsPC9kaXY+" style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0">​</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-15 18:06 GMT+08:00 Martin Bjorklund <span dir="ltr"><<a href="mailto:mbj@tail-f.com" target="_blank">mbj@tail-f.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
fxmy wang <<a href="mailto:fxmywc@gmail.com">fxmywc@gmail.com</a>> wrote:<br>
> 2017-03-14 22:53 GMT+08:00 Raimo Niskanen <<br>
> <a href="mailto:raimo%2Berlang-questions@erix.ericsson.se">raimo+erlang-questions@erix.<wbr>ericsson.se</a>>:<br>
><br>
> > I have now tried with the 'smilint' tool and it does not find any errors,<br>
> > so this is probably a legitimate way to write a MIB.<br>
> ><br>
> > If so our MIB compiler needs to be rewritten to do two passes; one handling<br>
> > anything not augmented, and one handling augmentation.<br>
<br>
</span>We have a fix for this bug in our (forked) snmp implementation.  A<br>
patch is included if you're interested.  The idea is that the<br>
definitions are sorted so that any augment ends up after the augment<br>
target; then the processing can be left as-is.<br>
<br>
Unfortunately the code is not 100% correct; specifically it puts the<br>
definition after the MODULE-COMPLIANCE so the compiler later complains<br>
that the compliance reference is invalid (which is not correct (but it<br>
works for us)).<br>
<br>
In order to be really correct, the code needs to be completely<br>
order-independent...<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
/martin<br>
</font></span></blockquote></div><br></div>