b17396b1e5b27ba5bfc8ff2f63d8d54bd4fb37ff
Replace the dpkg-buildpackage / debhelper rig with the same pattern
used in vpp-maglev: a Makefile that cross-compiles CGO-free static
binaries for amd64 and arm64, plus a debian/build-deb.sh that stages
the .deb directly with dpkg-deb. The two arch packages drop into
build/ and run on any glibc/musl Linux of the matching arch.
VERSION is parsed once from debian/changelog and injected at link
time via -ldflags "-X 'main.Version=...' -X 'main.Commit=...' -X
'main.Date=...'", so 'govpp-snmp-agentx --version' is the source of
truth for which build is running. main.go's Version constant becomes
a var to make this work; the old sync-version make target is gone.
Removes the now-unused debian/{control,rules,postinst,prerm,*.debhelper}
files and adds build/ to .gitignore.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
VPP SNMP AgentX Bridge
SNMP AgentX daemon that exposes VPP interface statistics via standard IF-MIB.
Quick Start
# Build
make build
# Test
make test
# Create Debian package
make pkg-deb
# Install package
sudo dpkg -i ../govpp-snmp-agentx_*.deb
Configuration
The Debian package installs a systemd service that reads configuration from /etc/default/govpp-snmp-agentx:
# Edit service configuration
sudo nano /etc/default/govpp-snmp-agentx
# Start service
sudo systemctl start govpp-snmp-agentx
Default configuration:
GOVPP_SNMP_AGENTX_FLAGS="-agentx.addr /var/agentx/master -vppcfg /etc/vpp/vppcfg.yaml -vppstats.period 10"
Documentation
- Manual page:
man govpp-snmp-agentx(after package installation) - Detailed documentation: docs/DETAILS.md
License
LGPL 3.0 (due to modified go-agentx dependency)
Description
Languages
Go
97.5%
Makefile
2.5%