[dev] How to build FRR with snmp supported ?
Simon Jones
batmanustc at gmail.com
Thu Aug 1 03:31:11 EDT 2019
Hi all,
I'm working on FRR, and I want bgpd and zebra to support snmp like this (
http://docs.frrouting.org/en/latest/snmp.html).
As I want to handle peer down/up events.
So I use this script to build :
.ONESHELL:
SHELL = /bin/bash
.SHELLFLAGS += -e
MAIN_TARGET = $(FRR)
DERIVED_TARGET = $(FRR_PYTHONTOOLS) $(FRR_DBG)
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
# Build the package
pushd ./frr
tools/tarsource.sh -V -e '-sonic'
dpkg-buildpackage -rfakeroot -b -us -uc -Ppkg.frr.nortrlib
-j$(SONIC_CONFIG_MAKE_JOBS)
popd
mv $(DERIVED_TARGET) $* $(DEST)/
$(addprefix $(DEST)/, $(DERIVED_TARGET)): $(DEST)/% : $(DEST)/$(MAIN_TARGET)
In build log, I found there are zebra_snmp.so, and I found in this folder
> $ find -name zebra_snmp.so
> ./frr/zebra/.libs/zebra_snmp.so
> ./frr/debian/frr-snmp/usr/lib/x86_64-linux-gnu/frr/modules/zebra_snmp.so
> ./frr/debian/tmp/usr/lib/x86_64-linux-gnu/frr/modules/zebra_snmp.so
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.
So how to build with these modules and snmp support like that URL?
Will this be work?
1. Add '-Ppkg.frr.snmp' in 'dpkg-buildpackage' step? Or
2. Use some old version?
Thank you~
----
Simon Jones
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.frrouting.org/pipermail/dev/attachments/20190801/92b20dae/attachment.html>
More information about the dev
mailing list