How smartbgp/yabmp works
Project type and purpose
• This is a Python‑based network daemon/library implementing the BGP Monitoring Protocol (BMP) receiver (RFC 7854 v3).
• It listens on a socket for BMP messages, parses them, and writes message contents to files (or publishes them via hooks).
File structure
• Top‑level:
• bin/yabmpd – CLI wrapper that starts the daemon
• etc/yabmp/*.ini.sample – Configuration template
• Dockerfile, start.sh – containerization and startup scripts
• setup.py, requirements.txt – packaging/dependencies
• Core package (yabmp/):
• channel/ – abstractions for network channels (config, factory, consumer, publisher, protocol)
• message/bmp.py – BMP message definitions and parsers
• core/ – low‑level BMP protocol factory and wire‐level handling
• handler/default.py – default “write to file” handler
• service.py – orchestrates startup, instantiates channel(s), dispatches messages
• common/ – shared constants and exception definitions
• hooks.py, log.py – extension points and logging utilities
• cmd/ – command‑line interface module
• tests/ – unit tests
README for additional insights
• Confirms it’s a receiver‑side reference implementation for stepping through BMP messages and dumping them.
• Quick‑start instructions show running python yabmpd spawns a BMP listener on port 20000.