Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
List of all routers with an eBGP link

>>> network = ank.example_multi_as()
>>> sorted(ebgp_routers(network))
[1b.AS1, 1c.AS1, 2a.AS2, 2d.AS2, 3a.AS3]

        def ebgp_routers(network):
    """List of all routers with an eBGP link

    >>> network = ank.example_multi_as()
    >>> sorted(ebgp_routers(network))
    [1b.AS1, 1c.AS1, 2a.AS2, 2d.AS2, 3a.AS3]

    """
    if not network.g_session.graph.get('ebgp_initialised'):
        initialise_ebgp(network)
    return list(set(item for pair in ebgp_edges(network) for item in pair))
        


src/a/n/ank_le-HEAD/AutoNetkit/compiler/netkitcompiler.py   ank_le(Download)
 
        ibgp_routers = ank.ibgp_routers(self.network)
        ebgp_routers = ank.ebgp_routers(self.network)
        igp_graph = ank.igp_graph(self.network)