<div dir="auto">For licensing reasons, the snmp support for FRR is always built as a separate package.<div dir="auto"><br></div><div dir="auto">So it will never be part of the main FRR package. Instead, when you run `dpkg-buildpackage` an additional `frr-snmp` package will be produced.</div><div dir="auto"><br></div><div dir="auto">To debug your problem, as pointed out by David, first check whether the `frr-snmp` package is built by your call to `dpkg-buildpackage` and then check your Dockerfile to see if it actually installs the `frr-snmp` package.</div><div dir="auto"><br></div><div dir="auto">All Best,</div><div dir="auto">Chris</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 2, 2019, 04:46 Simon Jones <<a href="mailto:batmanustc@gmail.com">batmanustc@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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="m_1085446128075408129gmail_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" target="_blank" rel="noreferrer">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 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>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@lists.frrouting.org" target="_blank" rel="noreferrer">dev@lists.frrouting.org</a><br>
<a href="https://lists.frrouting.org/listinfo/dev" rel="noreferrer noreferrer" target="_blank">https://lists.frrouting.org/listinfo/dev</a><br>
</blockquote></div>