Decision landed: routers target 1790 (IANA BMP port); the collector keeps
listening on 5000 in-container. One .env variable now drives every hop:
- compose publishes ${ROUTER_FACING_PORT:-1790}:5000 (was hardcoded 5000:5000)
- gobgpd.conf.tmpl (+ evpn) gains __BMP_PORT__; setup.sh renders it from
ROUTER_FACING_PORT -- gobgp is host-networked, so it must chase the
published port or the full-table feeder silently breaks
- deploy.sh + scripts/wsl-portproxy.ps1: the WSL side now publishes the
router-facing port itself, so the portproxy forwards the same port
end-to-end instead of down-mapping to 5000
- cml/proxmox_bmp_config.py reads ROUTER_FACING_IP/PORT from .env (HOST_IP
fallback for pre-key .envs); xrd-node-definition.yaml baked port -> 1790
- .env.example documents ROUTER_FACING_IP/PORT; docs updated, finding 12
closed on the repo side (routers still on 5000 need a config re-apply)
Verified live: collector republished 0.0.0.0:1790->5000, gobgp BMP session
Up to HOST_IP:1790 with the RIB dump flowing.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
30 lines
1.1 KiB
Cheetah
30 lines
1.1 KiB
Cheetah
# GoBGP -- modular EVPN test-route injector (roadmap E5)
|
|
#
|
|
# A profile-gated, throwaway GoBGP instance whose only job is to originate
|
|
# synthetic BGP EVPN routes and BMP-export them to the OpenBMP collector, so
|
|
# the EVPN ingestion pipeline (collector -> Kafka openbmp.parsed.evpn ->
|
|
# evpn-consumer -> evpn_rib) can be exercised. NOT a production component --
|
|
# start it only when testing:
|
|
# docker compose --profile evpn-test up -d gobgp-evpn
|
|
# bash gobgp-evpn/inject-evpn.sh
|
|
#
|
|
# It has no BGP peers; routes are injected straight into the local RIB, so
|
|
# BMP export uses route-monitoring-policy = local-rib.
|
|
|
|
[global]
|
|
[global.config]
|
|
as = 65010
|
|
router-id = "10.40.40.251"
|
|
# No inbound BGP listener -- we only originate locally and BMP-export.
|
|
port = -1
|
|
|
|
# --- BMP export to the OpenBMP collector ------------------------------------
|
|
[[bmp-servers]]
|
|
[bmp-servers.config]
|
|
address = "__HOST_IP__"
|
|
port = __BMP_PORT__
|
|
# local-rib: the injected EVPN routes live in the loc-rib (there are no
|
|
# BGP peers / no adj-rib-in), so export the local RIB.
|
|
route-monitoring-policy = "local-rib"
|
|
statistics-timeout = 3600
|