bgp/examples/pybgpstream-routeviews-stream.py

13 lines
261 B
Python
Raw Permalink Normal View History

2023-09-04 03:37:29 +00:00
#!/usr/bin/env python
import pybgpstream
stream = pybgpstream.BGPStream(
# accessing routeview-stream
project="routeviews-stream",
# filter to show only stream from amsix bmp stream
filter="router amsix",
)
for elem in stream:
print(elem)