Create network and run the CLI
()
| 56 | self.addLink(host, switch) |
| 57 | |
| 58 | def 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 | |
| 67 | if __name__ == '__main__': |