-
Notifications
You must be signed in to change notification settings - Fork 27
Description
I have two routers establish BMP session with openbmp collector, I am always receiving the message reply with ip 172.18.0.1 which is the docker gateway
root@controller:/data/lib/openbmp-python-api-message/examples# python3 log_consumer.py
log_consumer.py:89: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
config_content = yaml.load(f)
Connecting to kafka... takes a minute to load offsets and topics, please wait
Now consuming/waiting for messages...
Received Message (2020-06-22 07:24:33.620140) : COLLECTOR(V: 1.7)
[
{
"action": "heartbeat",
"seq": 41,
"admin_id": "collector",
"hash": "91e3a7ff9f5676ed6ae6fcd8a6b455ec",
"routers": "172.18.0.1, 172.18.0.1",
"router_count": 2,
"timestamp": 1592810673000
}
]
Received Message (2020-06-22 07:17:35.565263) : PEER(V: 1.7)
[
{
"action": "down",
"seq": 11,
"hash": "8b8961485bd9ef597474884076b6a8e9",
"router_hash": "e7e9fa1b62c27b8833dbcdc3af0e5179",
"name": "",
"remote_bgp_id": "10.11.11.11",
"router_ip": "172.18.0.1",
"timestamp": 1592810255000,
"remote_asn": 65000,
"remote_ip": "10.11.11.11",
"peer_rd": "0:0",
"remote_port": 0,
"local_asn": 0,
"local_ip": "",
"local_port": 0,
"local_bgp_id": "",
"info_data": "",
"adv_cap": "",
"recv_cap": "",
"remote_holddown": 0,
"adv_holddown": 0,
"bmp_reason": 1,
"bgp_error_code": 6,
"bgp_error_sub_code": 2,
"error_text": "Administrative shutdown",
"isL3VPN": 0,
"isPrePolicy": 1,
"isIPv4": 1,
"isLocRib": "0",
"isLocRibFiltered": "0",
"tableName": ""
}
]