Sourced

Sourced #

The sourced handler will return all the prefixes sourced by a specific ASN. Note that prefixes returned will be in the ipaddress format.

c = bgpstuff.Client()

c.get_sourced_prefixes(1)
if c.sourced:
    print(f"AS1 is originating {len(c.sourced)} prefixes:")
    for prefix in c.sourced:
        print(prefix)

AS1 is originating 8 prefixes:
45.6.192.0/22
12.52.182.0/24
205.207.214.0/24
45.182.198.0/23
170.84.89.0/24
170.84.90.0/24
212.94.84.0/22
170.84.88.0/22
TODO