bgp/examples/pybgpstream-ris-live.py
2023-09-03 23:37:29 -04:00

14 lines
258 B
Python

#!/usr/bin/env python
import pybgpstream
stream = pybgpstream.BGPStream(
# accessing ris-live
project="ris-live",
# filter to show only stream from rrc00
filter="collector rrc00",
)
for elem in stream:
print(type(elem))
print(elem)