Project 2
1. Read the Pyretic Documentation
2. Clone the pyretic repo to your VM
3. Patch asynchat Python dependency
4. Setup your environment variables EITHER by adding the following lines to end of .profile:
5. Implement a simple mac learning module. To run your pyretic module, use the following command:
pyretic.py -m p0 use_pyretic pyretic.tutorial.of_tutorial
6. Write a simple monitoring module that counts all packets going to or leaving host 1
Submission
Submit your code in a zip or tarball file to Canvas.
DUE: Nov 12th 11:59 pm ET
In this assignment, you will learn some basic SDN programming on
the Pyretic platform, using the same VM from assignment 1.
$ git clone https://github.com/frenetic-lang/pyretic.git
$ sudo pip install networkx bitarray netaddr ipaddr pytest ipdb sphinx
pyparsing==1.5.7 yappi
$ sudo gem install Jekyll
$ wget https://raw.github.com/frenetic-
lang/pyretic/master/pyretic/backend/patch/asynchat.py
$ sudo mv asynchat.py /usr/lib/python2.7/
$ sudo chown root:root /usr/lib/python2.7/asynchat.py
export PATH=$PATH:$HOME/pyretic:$HOME/pox
export PYTHONPATH=$HOME/pyretic:$HOME/mininet:$HOME/pox
Programming
[SOLVED] python network Project 2
$25
File Name: python_network_Project_2.zip
File Size: 226.08 KB
Only logged in customers who have purchased this product may leave a review.
Reviews
There are no reviews yet.