blob: ebde0673b824f39c132af16be55550b8ff262348 [file] [log] [blame]
Sumit Naiksatam4b26d312013-01-04 10:32:54 -08001# Big Switch/FloodLight OpenFlow Controller
2# ------------------------------------------
3
4# Save trace setting
Dean Troyer8d55be32013-02-07 17:16:35 -06005MY_XTRACE=$(set +o | grep xtrace)
Sumit Naiksatam4b26d312013-01-04 10:32:54 -08006set +o xtrace
7
8BS_FL_CONTROLLERS_PORT=${BS_FL_CONTROLLERS_PORT:-localhost:80}
9BS_FL_OF_PORT=${BS_FL_OF_PORT:-6633}
Sumit Naiksatam4b26d312013-01-04 10:32:54 -080010
11function configure_bigswitch_floodlight() {
12 :
13}
14
15function init_bigswitch_floodlight() {
Mark McClainb05c8762013-07-06 23:29:39 -040016 install_neutron_agent_packages
Sumit Naiksatam4b26d312013-01-04 10:32:54 -080017
18 echo -n "Installing OVS managed by the openflow controllers:"
19 echo ${BS_FL_CONTROLLERS_PORT}
20
21 # Create local OVS bridge and configure it
22 sudo ovs-vsctl --no-wait -- --if-exists del-br ${OVS_BRIDGE}
23 sudo ovs-vsctl --no-wait add-br ${OVS_BRIDGE}
24 sudo ovs-vsctl --no-wait br-set-external-id ${OVS_BRIDGE} bridge-id ${OVS_BRIDGE}
25
26 ctrls=
27 for ctrl in `echo ${BS_FL_CONTROLLERS_PORT} | tr ',' ' '`
28 do
29 ctrl=${ctrl%:*}
30 ctrls="${ctrls} tcp:${ctrl}:${BS_FL_OF_PORT}"
31 done
32 echo "Adding Network conttrollers: " ${ctrls}
33 sudo ovs-vsctl --no-wait set-controller ${OVS_BRIDGE} ${ctrls}
34}
35
36function install_bigswitch_floodlight() {
37 :
38}
39
40function start_bigswitch_floodlight() {
41 :
42}
43
44function stop_bigswitch_floodlight() {
45 :
46}
47
48# Restore xtrace
Dean Troyer8d55be32013-02-07 17:16:35 -060049$MY_XTRACE