Skip to content

Commit 9d793aa

Browse files
committed
Update README.md and resolve installation error
1. Remove waf_shell.sh 2. Update README.md 3. Add a quagga configuration patch 4. Fix a syntax error in install.sh 5. Update .gitignore
1 parent 244e1b2 commit 9d793aa

9 files changed

Lines changed: 38 additions & 36 deletions

File tree

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
.DS_Store
2-
openvswitch-*
32
ns-allinone-*/*
4-
openflow/*
53
mininet/*
6-
pygccxml/*
7-
gccxml/*
84
.idea/*
95
*.ropeproject*
106
*.tar.bz2
117
*.zip
128
*.deb
13-
waf_shell.sh
149
opennet_help.txt

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,24 @@ Supports Ubuntu 14.04.3
2020
# ./configure.sh
2121
# ./install.sh master
2222

23-
After a successful installation, the script will show "OpenNet installation complete."
23+
After a successful installation, the script will show "OpenNet installation has completed."
2424

2525
Run OpenNet
2626
-----------
27-
Before using OpenNet, you need to prepare SDN controller by yourself.
28-
Please try following commands to run the simulation:
27+
With an SDN controller, the example script should work fine.
2928

3029
$ sudo su -
3130
# cd OpenNet
32-
# ./waf_shell.sh
33-
# cd ../../mininet/examples/opennet
31+
# git clone https://github.com/noxrepo/pox.git
32+
# cd OpenNet/pox
33+
# ./pox.py forwarding.l2_learning &
34+
# cd OpenNet/mininet/examples/opennet
3435
# python wifiroaming.py
3536

36-
Do not type "sudo python wifiroaming.py", sudo will affect the environment
37-
variable required by simulation.
37+
Do not run the example as "sudo python wifiroaming.py".
38+
Sudo will replace environment variables and make the simulation fail.
3839

39-
If the simulation script cannot connect to the controller,
40-
stop the network-manager may help.
40+
If the simulation script cannot connect to the controller, stop the network-manager may help.
4141

4242
# service network-manager stop
4343

ansible/roles/ez_setup/tasks/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
register: gg
1717
tags: ez_setup
1818
- name: Remove ez_setup source code
19-
command: "rm ez_setup.py"
20-
args:
21-
chdir: "{{ file_path }}"
22-
tags: ez_setup
19+
file:
20+
path: "{{ file_path }}/ez_setup.py"
21+
state: absent
22+
tags: ez_setup
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
=======================================================================
2-
OpenNet installation complete.
3-
Before using OpenNet, you need to prepare SDN controller by yourself.
2+
OpenNet installation has completed.
3+
With an SDN controller, the example script should work fine.
44
=======================================================================
5-
Please try following commands to run the simulation
6-
$ sudo ./waf_shell.sh
5+
$ sudo su -
6+
# cd {{ home_location }}
7+
# git clone https://github.com/noxrepo/pox.git
8+
# cd {{ home_location }}/pox
9+
# ./pox.py forwarding.l2_learning &
710
# cd {{ home_location }}/mininet/examples/opennet
811
# python wifiroaming.py
912

ansible/roles/ns3/tasks/main.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@
5656
- name: Configure dynamic linker run-time bindings
5757
command: "ldconfig"
5858
tags: ns3
59-
- name: Create Waf Shell
60-
template:
61-
src: "waf_shell.sh.j2"
62-
dest: "{{ home_location }}/waf_shell.sh"
63-
mode: 0744
64-
tags: ns3
6559
- name: Remove NS3 source code
6660
file:
6761
path: "{{ home_location }}/ns-allinone-{{ NS3_VERSION }}.tar.bz2"

ansible/roles/ns3/templates/waf_shell.sh.j2

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--- quagga/configure.ac 2016-01-25 22:42:27.500861718 +0800
2+
+++ quagga-patch/configure.ac 2016-01-25 22:43:25.292774828 +0800
3+
@@ -10,6 +10,7 @@ AC_PREREQ(2.53)
4+
AC_INIT(Quagga, 0.99.25-dev, [https://bugzilla.quagga.net])
5+
CONFIG_ARGS="$*"
6+
AC_SUBST(CONFIG_ARGS)
7+
+AC_CONFIG_AUX_DIR([.])
8+
AC_CONFIG_SRCDIR(lib/zebra.h)
9+
AC_CONFIG_MACRO_DIR([m4])
10+

ansible/roles/quagga/tasks/main.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@
1414
version: "quagga-{{ QUAGGA_VERSION }}"
1515
tags: quagga
1616

17-
- name: Use Autotools
18-
command: "./update-autotools"
19-
args:
20-
chdir: "{{ quagga_dir_path }}"
17+
- name: Patch configure.ac
18+
patch:
19+
src: "{{ item }}"
20+
basedir: "{{ quagga_dir_path }}"
21+
strip: 1
22+
with_items:
23+
- quagga-configure.patch
2124
tags: quagga
2225

2326
- name: Autoreconf

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ fi
9696
echo "***Check hostname in /etc/hosts"
9797
for i in "$@"; do
9898
HOST_STATUS=$(cat /etc/hosts | grep -w $i | awk '{print $2}')
99-
if [ -z $HOST_STATUS ]; then
99+
if [[ -z $HOST_STATUS ]]; then
100100
echo "Can Not find hostname '$i' in /etc/hosts, please check."
101101
echo "The format should be like:"
102102
echo "10.0.0.1 master"

0 commit comments

Comments
 (0)