Commit db97c88a authored by Binh Nguyen's avatar Binh Nguyen

Add start scripts

parent caff3e57
#!/bin/bash
domain=$(hostname | awk -F'.' '{print $2"."$3"."$4"."$5}')
for i in client1 epc penb1 enb2 enb3 access1 access2 access3 tor hsw1 server1
do
ssh -YA -t -t $i.$domain "cd /usr/local/src; sudo -E git clone git@gitlab.flux.utah.edu:binh/simeca-minimum.git simeca"
done
delete from imsu;
delete from imsi;
delete from imsi_allowed_apn;
delete from imsi_apn;
delete from imsi_visited_network
#!/bin/bash
ovs-vsctl del-br br0
kill `cd /usr/local/var/run/openvswitch && cat ovsdb-server.pid ovs-vswitchd.pid`
modprobe -r openvswitch
modprobe openvswitch
lsmod | grep openvswitch
#mv /usr/local/etc/openvswitch/conf.db /usr/local/etc/openvswitch/conf.db.bak
ovsdb-tool create /usr/local/etc/openvswitch/conf.db /usr/local/share/openvswitch/vswitch.ovsschema
################ Startup ###########################
ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock \
--remote=db:Open_vSwitch,Open_vSwitch,manager_options \
--private-key=db:Open_vSwitch,SSL,private_key \
--certificate=db:Open_vSwitch,SSL,certificate \
--bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert \
--pidfile --detach
ovs-vsctl --no-wait init
ovs-vswitchd --pidfile --detach
ovs-appctl vlog/set info
#!/bin/bash
source ../simeca_constants.sh
if [ $# -lt 1 ]; then
echo "Usage <controller's ip, eg, 192.168.10.1>"
......@@ -6,7 +7,7 @@ if [ $# -lt 1 ]; then
fi
controller_ip=$1
sudo /usr/local/src/simeca/run_ovs.sh || {
sudo $START_SCRIPTS/run_ovs.sh || {
echo "Can't run OVS. Exit!"
exit 1
}
......@@ -14,7 +15,7 @@ sudo /usr/local/src/simeca/run_ovs.sh || {
ovs-vsctl del-br br0
get_interface="perl /usr/local/src/simeca/get_interface_map.pl"
get_interface="perl $START_SCRIPTS/get_interface_map.pl"
net_d_enb=$($get_interface | grep net-d-enb | awk '{print $3}')
net_d=$($get_interface | grep -w net-d[[:blank:]] | awk '{print $3}')
offload=$($get_interface | grep offload | awk '{print $3}')
......
#!/bin/bash
source ../simeca_constanst.sh
if [ $# -lt 1 ]; then
echo "Usage <controller's ip, eg, 192.168.10.1>"
......@@ -7,7 +8,7 @@ fi
controller_ip=$1
sudo /usr/local/src/simeca/run_ovs.sh || {
sudo $START_SCRIPTS/run_ovs.sh || {
echo "Can't run OVS. Exit!"
exit 1
}
......@@ -15,7 +16,7 @@ sudo /usr/local/src/simeca/run_ovs.sh || {
ovs-vsctl del-br br0
get_interface="perl /usr/local/src/simeca/get_interface_map.pl"
get_interface="perl $START_SCRIPTS/get_interface_map.pl"
interface_number=$($get_interface | grep -v mgmt | wc -l)
echo $interface_number
interfaces=()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment