bgp/examples/pybgpstream-ris-live.py

14 lines
258 B
Python
Raw Normal View History

2023-09-04 03:37:29 +00: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)