summaryrefslogtreecommitdiff
path: root/pimd/pim_errors.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2024-10-30 21:24:44 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2024-12-11 11:29:37 +0100
commit8198dec807ca8cbd00421fd88d607ff6b00fd484 (patch)
tree77fdb734ec1caa4e1e0318ae8ed344a0d88a7a71 /pimd/pim_errors.h
parent0190fd5985e373e4041158d3695f55231976be2e (diff)
bgpd, topotests: fix wrong peer type for loc-rib peer events
When running the bgp_bmp test, peer_up message from the loc-rib are received with a wrong peer type. > {"peer_type": "global instance", "policy": "pre-policy", "ipv6": false, "peer_ip": "0.0.0.0", > "peer_distinguisher": "0:0", "peer_asn": 0, "peer_bgp_id": "0.0.0.0", > "timestamp": "2024-10-16 21:59:53.111963", "bmp_log_type": "peer up", "local_ip": "0.0.0.0", > "local_port": 0, "remote_port": 0, "seq": 1} RFC9069 mentions in 5.1 that peer address must be set to 0.0.0.0, and the peer_type value must be set to 3. Today, the value set is 0 (global instance). This is wrong. Fix this by modifying the BMP client, update the peer type value to loc-rib on peer up messages. Modify the current BMP test, by checking the peer up messages for the 0.0.0.0 IP address (which is the value used for loc-rib). > {"peer_type": "loc-rib instance", "is_filtered": false, "policy": "loc-rib", > "peer_distinguisher": "0:0", "peer_asn": 65501, "peer_bgp_id": "192.168.0.1", > "timestamp": "2024-10-16 21:59:53.111963", "bmp_log_type": "peer up", "local_ip": "0.0.0.0", > "local_port": 0, "remote_port": 0, "seq": 1} Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'pimd/pim_errors.h')
0 files changed, 0 insertions, 0 deletions