Example #1
0
def launch_network():
    net = IPNet(topo=SIGTopo(),
                debug=_lib.DEBUG_FLAG,
                intf=custom(TCIntf, bw=BW))
    TopologyDB(net=net).save(DB_path)
    net.start()
    FibbingCLI(net)
    net.stop()
Example #2
0
def launch_network():

    #topo = TestTopo()
    topo = FatTree(k = 2, extraSwitch=True)
    intf = custom(TCIntf)

    #creates nodes and links
    net = IPNet(topo=topo,
                debug=_lib.DEBUG_FLAG,
                intf=intf, switch=LinuxBridge)

    #just stores the topology in a json object, it does not take into account mulipaths between nodes
    TopologyDB(net=net).save(DB_path)
    
    #start processes(quagga) and maps again the ips
    net.start()


    FibbingCLI(net)
    net.stop()