Separate VM finalization as install.sh -tc
This commit is contained in:
+3
-7
@@ -463,7 +463,7 @@ function cbench {
|
|||||||
sudo make install || true # make install fails; force past this
|
sudo make install || true # make install fails; force past this
|
||||||
}
|
}
|
||||||
|
|
||||||
function other {
|
function vm_other {
|
||||||
echo "Doing other Mininet VM setup tasks..."
|
echo "Doing other Mininet VM setup tasks..."
|
||||||
|
|
||||||
# Remove avahi-daemon, which may cause unwanted discovery packets to be
|
# Remove avahi-daemon, which may cause unwanted discovery packets to be
|
||||||
@@ -550,8 +550,6 @@ function all {
|
|||||||
pox
|
pox
|
||||||
oftest
|
oftest
|
||||||
cbench
|
cbench
|
||||||
other
|
|
||||||
echo "Please reboot, then run ./mininet/util/install.sh -c to remove unneeded packages."
|
|
||||||
echo "Enjoy Mininet!"
|
echo "Enjoy Mininet!"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -579,8 +577,6 @@ function vm_clean {
|
|||||||
git config --global user.name "None"
|
git config --global user.name "None"
|
||||||
git config --global user.email "None"
|
git config --global user.email "None"
|
||||||
|
|
||||||
# Remove mininet install script
|
|
||||||
rm -f install-mininet.sh
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function usage {
|
function usage {
|
||||||
@@ -604,7 +600,7 @@ function usage {
|
|||||||
printf -- ' -n: install mini(N)et dependencies + core files\n' >&2
|
printf -- ' -n: install mini(N)et dependencies + core files\n' >&2
|
||||||
printf -- ' -p: install (P)OX OpenFlow Controller\n' >&2
|
printf -- ' -p: install (P)OX OpenFlow Controller\n' >&2
|
||||||
printf -- ' -r: remove existing Open vSwitch packages\n' >&2
|
printf -- ' -r: remove existing Open vSwitch packages\n' >&2
|
||||||
printf -- ' -t: install o(T)her stuff\n' >&2
|
printf -- ' -t: complete o(T)her Mininet VM setup tasks\n' >&2
|
||||||
printf -- ' -v: install open (V)switch\n' >&2
|
printf -- ' -v: install open (V)switch\n' >&2
|
||||||
printf -- ' -w: install OpenFlow (w)ireshark dissector\n' >&2
|
printf -- ' -w: install OpenFlow (w)ireshark dissector\n' >&2
|
||||||
printf -- ' -x: install NO(X) Classic OpenFlow controller\n' >&2
|
printf -- ' -x: install NO(X) Classic OpenFlow controller\n' >&2
|
||||||
@@ -637,7 +633,7 @@ else
|
|||||||
n) mn_deps;;
|
n) mn_deps;;
|
||||||
p) pox;;
|
p) pox;;
|
||||||
r) remove_ovs;;
|
r) remove_ovs;;
|
||||||
t) other;;
|
t) vm_other;;
|
||||||
v) ovs;;
|
v) ovs;;
|
||||||
w) wireshark;;
|
w) wireshark;;
|
||||||
x) case $OF_VERSION in
|
x) case $OF_VERSION in
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ git clone git://github.com/mininet/mininet
|
|||||||
cd mininet
|
cd mininet
|
||||||
cd
|
cd
|
||||||
time mininet/util/install.sh
|
time mininet/util/install.sh
|
||||||
|
# Finalize VM
|
||||||
|
time mininet/util/install.sh -tc
|
||||||
# Ignoring this since NOX classic is deprecated
|
# Ignoring this since NOX classic is deprecated
|
||||||
#if ! grep NOX_CORE_DIR .bashrc; then
|
#if ! grep NOX_CORE_DIR .bashrc; then
|
||||||
# echo "export NOX_CORE_DIR=~/noxcore/build/src/" >> .bashrc
|
# echo "export NOX_CORE_DIR=~/noxcore/build/src/" >> .bashrc
|
||||||
|
|||||||
Reference in New Issue
Block a user