This Page

util.topology — Topology Storage and Lookup

class util.topology.Neighbor(name, ip, asnum)
acceptLocalOnly()
validAS()
class util.topology.Topology(me, args)
StaticRoutes()
as_is_transit(asnum, transitdict)
find_as(node, asdict)
find_as_info(asnodes, fakehash)

This will find all the BGP routers and internal nets for AS(x) and connected neighbors for searchnode if applicable:

for all nodes in AS(x)
        add fake networks as local
        for all networks for that node
                for all neighbors on that network
                        check if neighbor is part of our AS as well
                                yes: mark net as local
                                no:  mark node as BGP (if searchnode, add to list)
find_routes(me, fakehash)
getNeighborDetails(ninfo, myas, transitlist, peerlist)
iBGPNodes()