bgp/examples/pybgpstream-ris-live.py

14 lines
258 B
Python
Raw Normal View History

2023-09-03 20:37:29 -07:00
#!/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)