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

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)
Returns iBGP graph (full mesh currently) for an AS.

        def get_ibgp_graph(network):
    """Returns iBGP graph (full mesh currently) for an AS."""
#TODO: see if just use subgraph here for efficiency
    if not network.g_session.graph.get('ibgp_initialised'):
        initialise_ibgp(network)
    ibgp_graph = network.g_session.subgraph(ibgp_routers(network))
    ibgp_graph.remove_edges_from( ebgp_edges(network))
    return ibgp_graph
        


src/a/n/ank_le-HEAD/AutoNetkit/internet.py   ank_le(Download)
            physical_single_edge = nx.Graph(self.network.graph)
            ank.dump_graph(physical_single_edge, os.path.join(config.log_dir, "physical_single_edge"))
            ibgp_graph = ank.get_ibgp_graph(self.network)
            ebgp_graph = ank.get_ebgp_graph(self.network)
            ank.dump_graph(ibgp_graph, os.path.join(config.log_dir, "ibgp"))

src/a/n/ank_le-HEAD/AutoNetkit/compiler/netkitcompiler.py   ank_le(Download)
        route_maps = {}
 
        ibgp_graph = ank.get_ibgp_graph(self.network)
        ebgp_graph = ank.get_ebgp_graph(self.network)
        physical_graph = self.network.graph

src/a/n/ank_le-HEAD/AutoNetkit/compiler/cbgpcompiler.py   ank_le(Download)
        physical_graph = self.network.graph
        igp_graph = ank.igp_graph(self.network)
        ibgp_graph = ank.get_ibgp_graph(self.network)
        ebgp_graph = ank.get_ebgp_graph(self.network)
        as_graphs = ank.get_as_graphs(self.network)

src/a/n/ank_le-HEAD/AutoNetkit/compiler/junoscompiler.py   ank_le(Download)
        physical_graph = self.network.graph
        igp_graph = ank.igp_graph(self.network)
        ibgp_graph = ank.get_ibgp_graph(self.network)
        ebgp_graph = ank.get_ebgp_graph(self.network)
 

src/a/n/ank_le-HEAD/AutoNetkit/plotting/summary.py   ank_le(Download)
 
    ebgp_graph = ank.get_ebgp_graph(network)
    ibgp_graph = ank.get_ibgp_graph(network)
 
# Network wide stats

src/a/n/ank_le-HEAD/AutoNetkit/compiler/dynagencompiler.py   ank_le(Download)
        physical_graph = self.network.graph
        igp_graph = ank.igp_graph(self.network)
        ibgp_graph = ank.get_ibgp_graph(self.network)
        ebgp_graph = ank.get_ebgp_graph(self.network)
 

src/a/n/ank_le-HEAD/AutoNetkit/plotting/plot.py   ank_le(Download)
    plot_graph(graph, title="eBGP", pos=pos, labels=labels, show=show, save=save)
 
    graph = ank.get_ibgp_graph(network)
    labels = dict( (n, network.label(n)) for n in graph)
    plot_graph(graph, title="iBGP", pos=pos, labels=labels, show=show, save=save)

src/a/n/ank_le-HEAD/AutoNetkit/plotting/jsplot.py   ank_le(Download)
                ))
 
    ibgp_graph = ank.get_ibgp_graph(network)
    node_list = []
    for node in ibgp_graph.nodes():