<div dir="ltr"><div>Hi all,</div><div><br></div><div>I'm working on FRR, and I want bgpd and zebra to support snmp like this (<a href="http://docs.frrouting.org/en/latest/snmp.html">http://docs.frrouting.org/en/latest/snmp.html</a>).</div><div>As I want to handle peer down/up events.</div><div><br></div><div>So I use this script to build :</div><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;line-height:18px;white-space:pre"><div><span style="color:rgb(220,220,170)">.ONESHELL</span>:</div><div><span style="color:rgb(156,220,254)">SHELL</span> = /bin/bash</div><div><span style="color:rgb(156,220,254)">.SHELLFLAGS</span> += -e</div><br><div><span style="color:rgb(156,220,254)">MAIN_TARGET</span> = <span style="color:rgb(206,145,120)">$(</span><span style="color:rgb(156,220,254)">FRR</span><span style="color:rgb(206,145,120)">)</span></div><div><span style="color:rgb(156,220,254)">DERIVED_TARGET</span> = <span style="color:rgb(206,145,120)">$(</span><span style="color:rgb(156,220,254)">FRR_PYTHONTOOLS</span><span style="color:rgb(206,145,120)">)</span> <span style="color:rgb(206,145,120)">$(</span><span style="color:rgb(156,220,254)">FRR_DBG</span><span style="color:rgb(206,145,120)">)</span></div><br><div><span style="color:rgb(206,145,120)">$(</span><span style="color:rgb(220,220,170)">addprefix</span><span style="color:rgb(206,145,120)"> $(</span><span style="color:rgb(156,220,254)">DEST</span><span style="color:rgb(206,145,120)">)/, $(</span><span style="color:rgb(156,220,254)">MAIN_TARGET</span><span style="color:rgb(206,145,120)">))</span>: <span style="color:rgb(206,145,120)">$(</span><span style="color:rgb(156,220,254)">DEST</span><span style="color:rgb(206,145,120)">)</span>/% :</div><div>    # Build the package</div><div>    pushd ./frr</div><div>    tools/tarsource.sh -V -e '-sonic'</div><div>    dpkg-buildpackage -rfakeroot -b -us -uc -Ppkg.frr.nortrlib -j$(SONIC_CONFIG_MAKE_JOBS)</div><div>    popd</div><div>    mv $(DERIVED_TARGET) $* $(DEST)/</div><br><div><span style="color:rgb(206,145,120)">$(</span><span style="color:rgb(220,220,170)">addprefix</span><span style="color:rgb(206,145,120)"> $(</span><span style="color:rgb(156,220,254)">DEST</span><span style="color:rgb(206,145,120)">)/, $(</span><span style="color:rgb(156,220,254)">DERIVED_TARGET</span><span style="color:rgb(206,145,120)">))</span>: <span style="color:rgb(206,145,120)">$(</span><span style="color:rgb(156,220,254)">DEST</span><span style="color:rgb(206,145,120)">)</span>/% : <span style="color:rgb(206,145,120)">$(</span><span style="color:rgb(156,220,254)">DEST</span><span style="color:rgb(206,145,120)">)</span>/<span style="color:rgb(206,145,120)">$(</span><span style="color:rgb(156,220,254)">MAIN_TARGET</span><span style="color:rgb(206,145,120)">)</span></div><br></div></div><div><br></div><div>In build log, I found there are zebra_snmp.so, and I found in this folder</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">$ find -name zebra_snmp.so<br>./frr/zebra/.libs/zebra_snmp.so<br>./frr/debian/frr-snmp/usr/lib/x86_64-linux-gnu/frr/modules/zebra_snmp.so<br>./frr/debian/tmp/usr/lib/x86_64-linux-gnu/frr/modules/zebra_snmp.so</blockquote><div><br></div><div>But at last, in deb package, this is no zebra_snmp.so and other snmp.so in modules folder, and actually there is no modules folder.</div><div><br></div><div>So how to build with these modules and snmp support like that URL?</div><div><br></div><div>Will this be work?</div><div>1. Add '-Ppkg.frr.snmp' in '<span style="background-color:rgb(30,30,30);color:rgb(212,212,212);font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre">dpkg-buildpackage</span>' step? Or</div><div>2. Use some old version?</div><div><br></div><div>Thank you~</div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>----</div>Simon Jones</div></div></div></div></div></div>