mirror of
https://github.com/Wojtek242/route0.git
synced 2024-11-23 07:35:25 +01:00
Create topology directory
This commit is contained in:
parent
610541a170
commit
38734ede72
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1 @@
|
|||||||
logs/
|
|
||||||
*.pyc
|
*.pyc
|
@ -14,7 +14,7 @@ from topo import NetTopo
|
|||||||
|
|
||||||
root_dir = os.path.join(
|
root_dir = os.path.join(
|
||||||
os.path.dirname(os.path.realpath(__file__)),
|
os.path.dirname(os.path.realpath(__file__)),
|
||||||
'../../..')
|
'../../../..')
|
||||||
sys.path.append(root_dir)
|
sys.path.append(root_dir)
|
||||||
from router import Router
|
from router import Router
|
||||||
|
|
||||||
@ -23,7 +23,8 @@ def scenario():
|
|||||||
"""Start the network scenario.
|
"""Start the network scenario.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
os.system("rm -f /tmp/R*.log /tmp/R*.pid logs/*")
|
os.system("rm -f /tmp/R*.log /tmp/R*.pid /tmp/R*.out")
|
||||||
|
os.system("rm -f /tmp/h*.log /tmp/h*.pid /tmp/h*.out")
|
||||||
os.system("mn -c >/dev/null 2>&1")
|
os.system("mn -c >/dev/null 2>&1")
|
||||||
os.system("killall -9 zebra staticd > /dev/null 2>&1")
|
os.system("killall -9 zebra staticd > /dev/null 2>&1")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user