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

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Returns IGP graph for network - based on physical graph with inter-AS links removed

        def igp_graph(network):
    """Returns IGP graph for network - based on physical graph with inter-AS links removed"""
    G = network.graph.subgraph(network.graph.nodes())
# Remove inter-AS links
    edges_to_remove = ( (s,t) for (s,t) in G.edges()
            if network.asn(s) != network.asn(t))
    G.remove_edges_from(edges_to_remove)
    return G
        


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)
 
        dns_servers = set(self.network.dns_servers())

src/a/n/ank_le-HEAD/AutoNetkit/compiler/cbgpcompiler.py   ank_le(Download)
        template = lookup.get_template("cbgp/cbgp.mako")
        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/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/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)