MCPcopy Create free account
hub / github.com/mininet/mininet / run

Function run

examples/natnet.py:58–64  ·  view source on GitHub ↗

Create network and run the CLI

()

Source from the content-addressed store, hash-verified

56 self.addLink(host, switch)
57
58def run():
59 "Create network and run the CLI"
60 topo = InternetTopo()
61 net = Mininet(topo=topo, waitConnected=True )
62 net.start()
63 CLI(net)
64 net.stop()
65
66
67if __name__ == '__main__':

Callers 1

natnet.pyFile · 0.70

Calls 5

startMethod · 0.95
stopMethod · 0.95
MininetClass · 0.90
CLIClass · 0.90
InternetTopoClass · 0.85

Tested by

no test coverage detected