blob: 033731e27c51e4dce8a10bd2eba730812ba1e81a [file] [log] [blame]
Sumit Naiksatam4b26d312013-01-04 10:32:54 -08001# Big Switch/FloodLight OpenFlow Controller
2# ------------------------------------------
3
4# Save trace setting
Dean Troyere3a91602014-03-28 12:40:56 -05005BS3_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
Ian Wienandaee18c72014-02-21 15:35:08 +110011function configure_bigswitch_floodlight {
Sumit Naiksatam4b26d312013-01-04 10:32:54 -080012 :
13}
14
Ian Wienandaee18c72014-02-21 15:35:08 +110015function 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=
Sean Dague16dd8b32014-02-03 09:10:54 +090027 for ctrl in `echo ${BS_FL_CONTROLLERS_PORT} | tr ',' ' '`; do
Sumit Naiksatam4b26d312013-01-04 10:32:54 -080028 ctrl=${ctrl%:*}
29 ctrls="${ctrls} tcp:${ctrl}:${BS_FL_OF_PORT}"
30 done
31 echo "Adding Network conttrollers: " ${ctrls}
32 sudo ovs-vsctl --no-wait set-controller ${OVS_BRIDGE} ${ctrls}
33}
34
Ian Wienandaee18c72014-02-21 15:35:08 +110035function install_bigswitch_floodlight {
Sumit Naiksatam4b26d312013-01-04 10:32:54 -080036 :
37}
38
Ian Wienandaee18c72014-02-21 15:35:08 +110039function start_bigswitch_floodlight {
Sumit Naiksatam4b26d312013-01-04 10:32:54 -080040 :
41}
42
Ian Wienandaee18c72014-02-21 15:35:08 +110043function stop_bigswitch_floodlight {
Sumit Naiksatam4b26d312013-01-04 10:32:54 -080044 :
45}
46
Ian Wienandaee18c72014-02-21 15:35:08 +110047function check_bigswitch_floodlight {
armando-migliaccioef1e0802014-01-02 16:33:53 -080048 :
49}
50
Sumit Naiksatam4b26d312013-01-04 10:32:54 -080051# Restore xtrace
Dean Troyere3a91602014-03-28 12:40:56 -050052$BS3_XTRACE