Skip to content
This repository was archived by the owner on Jun 27, 2018. It is now read-only.

Running Pyretic

Joshua Reich edited this page Oct 30, 2013 · 4 revisions

Run Pyretic from the command line using pyretic.py, e.g.,

$ pyretic.py -m p0 pyretic.modules.mac_learner

The -m flag indicates the Pyretic runtime's mode of operation.

  • interpreted (i) - every packet is processed in the controller runtime. Unsurpsingly slow, but useful for debugging.
  • reactive (r0) - rules are reactively pushed to switches based on the Pyretic policy and the packets seen.
  • proactive (p0) - rules are proactively pushed to switches based on the Pyretic policy. Generally the highest performant mode currently available.

Our typical mininet workflow on the Pyretic VM uses screen

$ screen -S test 

from within screen ctrl-a ctrl-c opens a second screen (ctrl-a, ctrl-a toggles between the two). In one screen run mininet, in the other run the pyretic. (TIP: start pyretic first for quicker hookup w/ mininet) Each example file in pyretic/pyretic/examples contains instructions regarding mininet setup and testing.

Clone this wiki locally