Create topology directory

This commit is contained in:
Wojciech Kozlowski 2019-04-06 15:18:30 +02:00
parent 610541a170
commit 38734ede72
11 changed files with 3 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,2 +1 @@
logs/
*.pyc *.pyc

View File

View File

@ -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")