Permalink
Browse files

- Updated README.

- Minor cleanups.
  • Loading branch information...
1 parent 568dc15 commit 83ffd1e43854dde4d68512a40476d49be0291e4b @alnvdl alnvdl committed May 10, 2012
Showing with 37 additions and 37 deletions.
  1. +36 −35 README
  2. +1 −1 nox/src/nox/netapps/rfproxy/rfproxy.cc
  3. +0 −1 rflib/rftable/RFTable.h
View
71 README
@@ -81,15 +81,15 @@ These instructions are tested on Ubuntu 11.04.
1) Install the dependencies:
$ sudo apt-get install build-essential linux-headers-generic
-2) Download Open vSwitch 1.4.0, extract it to a folder and browse to it:
-$ wget http://openvswitch.org/releases/openvswitch-1.4.0.tar.gz
-$ tar xzf openvswitch-1.4.0.tar.gz
-$ cd openvswitch-1.4.0
+2) Download Open vSwitch 1.4.1, extract it to a folder and browse to it:
+$ wget http://openvswitch.org/releases/openvswitch-1.4.1.tar.gz
+$ tar xzf openvswitch-1.4.1.tar.gz
+$ cd openvswitch-1.4.1
3) Configure it as a kernel module, then compile and install
$ ./configure --with-linux=/lib/modules/`uname -r`/build
$ make
-$ make install
+$ sudo make install
4) Install the modules in your system:
$ sudo mkdir /lib/modules/`uname -r`/kernel/net/ovs
@@ -122,11 +122,10 @@ $ sudo insmod datapath/linux/openvswitch_mod.ko
# avoid conflicts with the openvswitch module
blacklist bridge
- Edit /etc/modules to configure the automatic loading of the openvswitch_mod
- module:
+5) Edit /etc/modules to configure the automatic loading of the openvswitch_mod
+ module:
- $ cd /etc
- $ sudo vi modules
+ $ sudo vi /etc/modules
Insert the following line at the end of the file, save and close:
@@ -139,16 +138,38 @@ $ sudo insmod datapath/linux/openvswitch_mod.ko
$ sudo lsmod | grep openvswitch_mod
openvswitch_mod 68247 0
-5) Initialize the configuration database:
-$ mkdir -p /usr/local/etc/openvswitch
-$ ovsdb-tool create /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema
+6) Initialize the configuration database:
+$ sudo mkdir -p /usr/local/etc/openvswitch
+$ sudo ovsdb-tool create /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema
+
+
+** MongoDB **
+1) Install the dependencies:
+$ sudo apt-get install git-core build-essential scons libboost-dev \
+ libboost-program-options-dev libboost-thread-dev libboost-filesystem-dev \
+ python-pip
+
+3) Download and extract MongoDB v2.0.5
+$ wget http://downloads.mongodb.org/src/mongodb-src-r2.0.5.tar.gz
+$ tar zxf mongodb-src-r2.0.5.tar.gz
+$ cd mongodb-src-r2.0.5
+
+3) There's a conflict with a constant name in NOX and MongoDB. It has
+been fixed, but is not part of version 2.0.5 yet. So, we need to fix it
+applying the changes listed in this commit:
+https://github.com/mongodb/mongo/commit/a1e68969d48bbb47c893870f6428048a602faf90
+
+4) Then compile and install MongoDB:
+$ scons all
+$ sudo scons --full install --prefix=/usr --sharedclient
+$ sudo pip install pymongo
** NOX install instructions **
1) Install the dependencies:
-$ sudo apt-get install autoconf automake g++ libtool swig make git-core
- libboost-dev libboost-test-dev libboost-filesystem-dev libssl-dev libpcap-dev
- python-twisted python-simplejson python-dev
+$ sudo apt-get install autoconf automake g++ libtool swig make git-core \
+ libboost-dev libboost-test-dev libboost-filesystem-dev libssl-dev \
+ libpcap-dev python-twisted python-simplejson python-dev
2) TwistedPython, one of the dependencies of the NOX controller bundled with
the RouteFlow distribution, got an update that made it stop working.
@@ -179,26 +200,6 @@ Save the file and you're ready to go.
NOX will be compiled with the RouteFlow distribution in the steps ahead.
-** MongoDB **
-1) Install the dependencies:
-$ sudo apt-get install git-core build-essential scons libboost-dev
- libboost-program-options-dev libboost-thread-dev libboost-filesystem-dev
- python-pip
-
-3) Download MongoDB v2.0.4:
-http://downloads.mongodb.org/src/mongodb-src-r2.0.4.tar.gz
-
-3) There's a conflict with a constant name in NOX and MongoDB. It has
-been fixed, but is not part of version 2.0.4 yet. So, we need to fix it
-applying the changes listed in this commit:
-https://github.com/mongodb/mongo/commit/a1e68969d48bbb47c893870f6428048a602faf90
-
-4) Then compile and install MongoDB:
-$ scons all
-$ sudo scons --full install --prefix=/usr --sharedclient
-$ sudo pip install pymongo
-
-
** RouteFlow **
1) Install the dependencies:
$ sudo apt-get install build-essential iproute-dev swig1.3
@@ -137,7 +137,7 @@ Disposition rfproxy::handle_datapath_join(const Event& e) {
osr->type = htons(OFPST_DESC);
osr->flags = htons(0);
// Send OFPT_STATS_REQUEST
- send_openflow_command(dj.datapath_id, &osr->header, false);
+ send_openflow_command(dj.datapath_id, &osr->header, true);
return CONTINUE;
}
View
@@ -15,7 +15,6 @@
#define VS_PORT "vs_port"
#define DP_ID "dp_id"
#define DP_PORT "dp_port"
-#define ACTIVE "active"
using namespace std;

0 comments on commit 83ffd1e

Please sign in to comment.