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 graph of eBGP routers and links between them.

        def get_ebgp_graph(network):
    """Returns graph of eBGP routers and links between them."""
#TODO: see if just use subgraph here for efficiency
    if not network.g_session.graph.get('ebgp_initialised'):
        initialise_ebgp(network)
    ebgp_graph = network.g_session.subgraph(ebgp_routers(network))
    ebgp_graph.remove_edges_from( ibgp_edges(network))
    return ebgp_graph
        


src/a/n/ank_le-HEAD/AutoNetkit/internet.py   ank_le(Download)
            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"))
            ank.dump_graph(ebgp_graph, os.path.join(config.log_dir, "ebgp"))

src/a/n/ank_le-HEAD/AutoNetkit/compiler/netkitcompiler.py   ank_le(Download)
 
        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)
        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)
        ip_as_allocs = ank.get_ip_as_allocs(self.network) # Allocs for ebgp announcements

src/a/n/ank_le-HEAD/AutoNetkit/compiler/junoscompiler.py   ank_le(Download)
        igp_graph = ank.igp_graph(self.network)
        ibgp_graph = ank.get_ibgp_graph(self.network)
        ebgp_graph = ank.get_ebgp_graph(self.network)
 
        #TODO: correct this router type selector

src/a/n/ank_le-HEAD/AutoNetkit/plotting/summary.py   ank_le(Download)
    ank_css_template = lookup.get_template("autonetkit/style_css.mako")
 
    ebgp_graph = ank.get_ebgp_graph(network)
    ibgp_graph = ank.get_ibgp_graph(network)
 

src/a/n/ank_le-HEAD/AutoNetkit/compiler/dynagencompiler.py   ank_le(Download)
        igp_graph = ank.igp_graph(self.network)
        ibgp_graph = ank.get_ibgp_graph(self.network)
        ebgp_graph = ank.get_ebgp_graph(self.network)
 
        for router in self.network.routers():

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

src/a/n/ank_le-HEAD/AutoNetkit/plotting/jsplot.py   ank_le(Download)
 
    #TODO: work out how to do multiple on one page
    ebgp_graph = ank.get_ebgp_graph(network)
    labels = dict( (n, network.label(n)) for n in ebgp_graph)
    nx.relabel_nodes(ebgp_graph, labels, copy=False)