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

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Loads the network description from a graph file.
Note this is done automatically if a filename is given to
the Internet constructor.

Args:
   filename:    The file to load from

Returns:
   None

Example usage:

>>> inet = ank.internet.Internet()
>>> inet.load("simple")
>>> sorted(inet.network.graph.nodes())
[RouterB.AS1, RouterA.AS1, RouterD.AS2, RouterC.AS1, RouterA.AS2, RouterA.AS3, RouterB.AS2, RouterC.AS2]

>>> inet = ank.internet.Internet()
>>> inet.load("singleas")
>>> sorted(inet.network.graph.nodes())
[1a.AS1, 1b.AS1, 1d.AS1, 1c.AS1]

>>> inet = ank.internet.Internet()
>>> inet.load("multias")
>>> sorted(inet.network.graph.nodes())
[1b.AS1, 1a.AS1, 2d.AS2, 1c.AS1, 2a.AS2, 3a.AS3, 2b.AS2, 2c.AS2]

src/a/n/ank_le-HEAD/AutoNetkit/console_script.py   ank_le(Download)
            libvirt = options.libvirt,
            olive_qemu_patched=options.olive_qemu_patched, igp=igp)
    inet.load(f_name)
 
    inet.add_dns()