Changes between Initial Version and Version 1 of HowTo/RunOFTutorial


Ignore:
Timestamp:
05/16/12 14:03:32 (12 years ago)
Author:
nriga@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowTo/RunOFTutorial

    v1 v1  
     1This page describes how to run an OpenFlow tutorial in Mesoscale that gets around the manual approval process. We expect that this won't be needed any more after Foam 1.8 is installed in the sites.
     2
     3In summary the idea is to create a big slice that will contain all the flowspace for the tutorial and as the controller for that slice use a !FlowVisor (called tutorial-fv from now on)  that is controlled by FOAM
     4(called tutorial-foam).
     5
     6This wiki page provides step-by-step instructions.
     7
     8== 1. Install a FV, FOAM on a new machine ==
     9First start by installing FOAM and FV on a new machine. Currently it is not easy to run two instances of FOAM on the same machine so use a dedicated machine for this.
     10
     11[https://openflow.stanford.edu/display/DOCS/Installation+Guide Instructions about installing Flowvisor]
     12
     13[https://openflow.stanford.edu/display/FOAM/Install+Guide Instructions about installing FOAM]
     14
     15==== OPTIONAL : Turn auto-approval on ====
     16If the users of the tutorial are going to create safe slivers (e.g. no loops), or if they are using precanned rspecs that are tested and safe then you
     17can turn auto-approval on in FOAM, so that the administrator does not have to manually approve all the slices during the tutorial.
     18
     19To do this, you will need to install curl :
     20{{{
     21sudo apt-get install curl
     22}}}
     23And then execute this command:
     24{{{
     25curl -kn -u foamadmin:<passwd> https://localhost:3626/admin/set-config -X POST -H "Content-Type: application/json" -d '{"key":"auto_approve","value":true}'
     26}}}
     27
     28The result should look like:
     29{{{
     30{"msg": "", "retcode": 0, "value": {"status": "success"}}
     31}}}
     32