Preparation
You can start with copying the content of lab_4/myrouter.py
to lab_5/myrouter.py
.
- Create a directory named
lab_5
inswitchyard
. - Copy
lab_4/start_mininet.py
tolab_5/start_mininet.py
. - Copy
lab_4/myrouter.py
tolab_5/myrouter.py
. - Copy
lab_4/forwarding_table.txt
tolab_5/forwarding_table.txt
.
Though we will provide the test files, they are incomprehensible. So you should still write test scenarios that test all aspects of your code. You can find our test files below. Download it and you will use it to test your switch later. You can unzip the test files we provide into the folder lab_5
.
Download compiled test cases here.
Finally, your project will look like
switchyard
├─docs/
├─.../
+ ├─lab_5/
+ │ ├─myrouter.py
+ │ ├─forwarding_table.txt
│ ├─...
+ │ └─start_mininet.py
├─.gitignore
└─...
[!WARNING] All of your modifications should be done on the files under your directory
lab_5
. We will check and compare the git commits to judge the originality of your work. So remember to commit every time you complete one small task.