<div dir="ltr"><div dir="ltr"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> dpkg-buildpackage -rfakeroot -b -us -uc -Ppkg.frr.nortrlib<br>> -j$(SONIC_CONFIG_MAKE_JOBS)<br>This command will build the "frr-snmp" package along with "frr",<br>"frr-doc" and "frr-pythontools".</blockquote><div dir="ltr"><br></div><div>Thank you, but my question is:</div><div>if frr-snmp has been build, is it NOT packaged into deb package? </div><div>If it is, which command is to package frr-snmp into deb package? </div><div>If it is not, why FRR running from this docker image has NO /usr/lib/*/frr/modules/*_snmp.so ? And could not start zebra with '-M snmp' ?<br></div><div dir="ltr"><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><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">David Lamparter <<a href="mailto:equinox@diac24.net">equinox@diac24.net</a>> 于2019年8月1日周四 下午9:06写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Aug 01, 2019 at 08:32:05PM +0800, Simon Jones wrote:<br>
> Oh,maybe I did not introduce clearly, I'm working on sonic-frr(<br>
> <a href="https://github.com/Azure/sonic-frr" rel="noreferrer" target="_blank">https://github.com/Azure/sonic-frr</a>),<br>
<br>
I don't see any changes in the Debian packaging there.<br>
<br>
> dpkg-buildpackage -rfakeroot -b -us -uc -Ppkg.frr.nortrlib<br>
> -j$(SONIC_CONFIG_MAKE_JOBS)<br>
<br>
This command will build the "frr-snmp" package along with "frr",<br>
"frr-doc" and "frr-pythontools".<br>
<br>
> - use this script to build sonic-frr docker image, is this script<br>
> install SNMP codes into docker image? I think it's NOT, so I want to know<br>
> how to package SNMP codes into docker image, which is how to install SNMP<br>
> codes into deb package.<br>
<br>
You're taking a wrong turn at the "into deb package" part.<br>
<br>
The SNMP modules are in the "frr-snmp" package. All you need to do is<br>
to make sure the "frr-snmp" package is included in your Docker image,<br>
like the "frr" package already is.<br>
<br>
There's something in your Docker image build that already lists the FRR<br>
package to be included into the image. You need to add frr-snmp there.<br>
Unfortunately I can't really help you with that as understanding the<br>
Sonic Docker image build process would take up more of my time than I<br>
can afford. Sorry.<br>
<br>
> Is it to add '-Ppkg.frr.snmp' ?<br>
<br>
No. That option does not exist. It is always enabled.<br>
<br>
<br>
-David<br>
</blockquote></div></div>