bgp

- research & experiments with border gateway protocol
git clone git://git.acid.vegas/bgp.git
Log | Files | Refs | Archive | README

pybgpstream-routeviews-stream.py (261B)

      1 #!/usr/bin/env python
      2 
      3 import pybgpstream
      4 stream = pybgpstream.BGPStream(
      5     # accessing routeview-stream
      6     project="routeviews-stream",
      7     # filter to show only stream from amsix bmp stream
      8     filter="router amsix",
      9 )
     10 
     11 for elem in stream:
     12     print(elem)