Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
c7dc03d
modify README.md
Dec 3, 2014
9bb38cb
fix concluded
Jan 29, 2015
13e9a32
fix concluded, and merge dlink-dev
Jan 29, 2015
b58ae74
Merge branch 'dev' of https://github.com/westwind/OmniUI into dev
Jan 31, 2015
c354f6b
Updated Installation Instructions
ChickenFood Dec 13, 2014
dab7ae6
Retrieve the missing part in README.md
charlesmcchan Dec 16, 2014
649a805
Fix space and indent
ChickenFood Dec 16, 2014
33bbd0e
Gather url configuration in a single file
win911 Dec 21, 2014
4d7c28f
Mistyped Type & Variable correction
ChickenFood Dec 22, 2014
0e38031
Server-sent event
starbops Jan 25, 2015
c3ea9b3
Implement FlowMod for Ryu 1.0
ChickenFood Dec 23, 2014
80eb706
gevent is required by core
charlesmcchan Feb 1, 2015
84fa2a3
Read url from config.js
charlesmcchan Feb 1, 2015
e39faa4
Merge UI from waynelkh/Network-Management-Tool. Add CI configuration.
charlesmcchan Feb 2, 2015
84b7b31
Introduce continuous integration
charlesmcchan Feb 2, 2015
f2b7157
Implement FlowMod for Ryu 1.3
steven9467 Feb 4, 2015
46d29ca
Add install.sh for Floodlight adapter
charlesmcchan Feb 5, 2015
1466de6
Update README.md and floodlight/install.sh
kansokusha Feb 9, 2015
e8a81a2
Fix bugs of POX adapter
win911 Jan 6, 2015
4772aa9
Busy link detection
win911 Jul 23, 2014
1a1d4d8
Merge branch 'tmp' into dev
Mar 25, 2015
7d060be
new file: adapter/ryu/omniui/simple_switch_13.py
Apr 7, 2015
1feaadd
modified: README.md
Apr 7, 2015
0d36c7f
modified: core/config.json
Apr 7, 2015
cc14ed5
modified: ../.gitignore
Apr 8, 2015
c8cbc8f
modified: .gitignore
Apr 8, 2015
897b4df
Merge branch 'master' of git://github.com/dlinknctu/OmniUI
Apr 8, 2015
27b518c
# This is a combination of 4 commits.
Dec 3, 2014
73370ba
new file: simple_switch.py
Apr 8, 2015
733e8a6
modified: README.md
Apr 8, 2015
3a83f6c
Merge branch 'dev' of https://github.com/westwind/OmniUI into dev
Apr 8, 2015
7c40006
modified: ../.travis.yml
Apr 8, 2015
f75d2fe
Revert " modified: core/config.json"
Apr 8, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.DS_Store
*.pyc
*.log
config.json
build
dist
*.egg-info
*.eggs
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
script: ./run-tests.sh
sudo: false
cache:
directories:
- $HOME/.local/lib/python2.7/site-packages/
- $HOME/build/dlinknctu/OmniUI/ui/node_modules/
29 changes: 18 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ $ `sudo apt-get install build-essential python-dev git python-virtualenv python-
2. Update existing packages
$ `sudo apt-get update`
$ `sudo pip install --upgrade pip virtualenv`
$ `sudo pip install flask flask_cors gevent pymongo`

3. Download & Install Mininet
$ `git clone git://github.com/mininet/mininet`
Expand All @@ -38,17 +37,25 @@ $ `git clone https://github.com/dlinknctu/OmniUI.git -b dev`
5. Install MongoDB
* Please refer to [Install MongoDB](http://docs.mongodb.org/manual/installation/)

6. Modify OmniUI database credentials
$ `gedit ~/OmniUI/core/config.json`
**Modify the following (UIPusher and DbCollection section):**
`"ControllerType":"<CONTROLLER_NAME>"` **If using Ryu, fill ControllerType as "floodlight"**
`"dbip":"<YOUR_DATABASE_IP_ADDR>",`
`"dbport":"<YOUR_DATABASE_IP_PORT>",`
`"db":"<YOUR_DATABASE_NAME>",`
`"user":"<YOUR_DATABASE_LOGIN_USERNAME>"`
`"password":"<YOUR_DATABASE_LOGIN_PASSWORD>"`
###Installation & Execution of OmniUI Core###
1. Modify OmniUI database credentials
$ `gedit ~/OmniUI/core/etc/config.json`
**Modify the following (UIPusher and DbCollection section):**
`"ControllerType":"<CONTROLLER_NAME>"` **If using Ryu, fill ControllerType as "floodlight"**
`"dbip":"<YOUR_DATABASE_IP_ADDR>",`
`"dbport":"<YOUR_DATABASE_IP_PORT>",`
`"db":"<YOUR_DATABASE_NAME>",`
`"user":"<YOUR_DATABASE_LOGIN_USERNAME>"`
`"password":"<YOUR_DATABASE_LOGIN_PASSWORD>"`

###Installation & Execution###
2. Install OmniUI core and dependencies
$ `cd ~/OmnuUI/core/`
$ `sudo python setup.py install`

3. Run OmniUI core
$ `/usr/local/bin/omniui`

###Installation & Execution of Controllers###
- Installation & Execution of controller adapter
* Please refer to `/adapter/<controller>/README.md`

Expand Down
10 changes: 3 additions & 7 deletions adapter/floodlight/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,12 @@ $ `cp -r ~/OmniUI/adapter/floodlight/omniui/ .`
$ `cd ~/floodlight; ant`

###Execution###
1. Compile OmniUI core
$ `cd ~; python ~/OmniUI/core/core.py`
**Successful compilation starts the OmniUI core**

2. Run the Floodlight Controller (Using a 2nd Terminal)
1. Run the Floodlight Controller (Using a 2nd Terminal)
$ `java -jar floodlight/target/floodlight.jar`

3. Run a simple Mininet topology (Using a 3rd Terminal)
2. Run a simple Mininet topology (Using a 3rd Terminal)
$ `sudo mn --controller=remote --topo tree,depth=2`

4. Start-up OmniUI Web UI (Using a 4th Terminal)
3. Start-up OmniUI Web UI (Using a 4th Terminal)
$ `firefox ~/OmniUI/webui/index.html`

23 changes: 23 additions & 0 deletions adapter/floodlight/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

echo -e "\033[32mClone Floodlight 0.91 from GitHub repository\033[0m"
git clone https://github.com/floodlight/floodlight.git -b v0.91 floodlight

echo -e '\033[32mCopy OmniUI module into Floodlight directory\033[0m'
cp -r adapter/floodlight/omniui floodlight/src/main/java/net/floodlightcontroller/

echo -e '\033[32mModify META-INF\033[0m'
echo "net.floodlightcontroller.omniui.OmniUI" >> \
floodlight/src/main/resources/META-INF/services/net.floodlightcontroller.core.module.IFloodlightModule

echo -e '\033[32mModify floodlightdefault.properties\033[0m'
file='floodlight/src/main/resources/floodlightdefault.properties'
sed '2i\
net.floodlightcontroller.omniui.OmniUI,\\
' $file > $file.tmp
mv $file.tmp $file

# Compile Floodlight
echo -e '\033[32mCompile Floodlight\033[0m'
cd floodlight
ant
Loading