14 lines
157 B
Python
Executable File
14 lines
157 B
Python
Executable File
#!/usr/bin/python
|
|
from topology import *
|
|
|
|
T = Topology()
|
|
net1 = Network(T, "pyt0")
|
|
|
|
h2 = Host(T, net1, args="httpd")
|
|
|
|
sleep(1)
|
|
start(T)
|
|
|
|
wait(h2)
|
|
cleanup()
|