Totals

Totals #

The totals handler will return the current IPv4 and IPv6 RIB counts.

Always check the status_code is 200 after each query.
c = bgpstuff.Client()

c.get_totals()
if c.status_code == 200 and c.exists:
    print(f"There are {c.total_v4} IPv4 prefixes and {c.total_v6} IPv6 prefixes currently active")
There are 853436 IPv4 prefixes and 107017 IPv6 prefixes currently active
TODO