e263c82e |
#!/bin/bash
# |
4b26d319 |
# Big Switch/FloodLight OpenFlow Controller
# ------------------------------------------
# Save trace setting |
e3a9160c |
BS3_XTRACE=$(set +o | grep xtrace) |
4b26d319 |
set +o xtrace
BS_FL_CONTROLLERS_PORT=${BS_FL_CONTROLLERS_PORT:-localhost:80}
BS_FL_OF_PORT=${BS_FL_OF_PORT:-6633}
|
aee18c74 |
function configure_bigswitch_floodlight { |
4b26d319 |
:
}
|
aee18c74 |
function init_bigswitch_floodlight { |
b05c8769 |
install_neutron_agent_packages |
4b26d319 |
echo -n "Installing OVS managed by the openflow controllers:"
echo ${BS_FL_CONTROLLERS_PORT}
# Create local OVS bridge and configure it
sudo ovs-vsctl --no-wait -- --if-exists del-br ${OVS_BRIDGE}
sudo ovs-vsctl --no-wait add-br ${OVS_BRIDGE}
sudo ovs-vsctl --no-wait br-set-external-id ${OVS_BRIDGE} bridge-id ${OVS_BRIDGE}
ctrls= |
16dd8b3e |
for ctrl in `echo ${BS_FL_CONTROLLERS_PORT} | tr ',' ' '`; do |
4b26d319 |
ctrl=${ctrl%:*}
ctrls="${ctrls} tcp:${ctrl}:${BS_FL_OF_PORT}"
done
echo "Adding Network conttrollers: " ${ctrls}
sudo ovs-vsctl --no-wait set-controller ${OVS_BRIDGE} ${ctrls}
}
|
aee18c74 |
function install_bigswitch_floodlight { |
4b26d319 |
:
}
|
aee18c74 |
function start_bigswitch_floodlight { |
4b26d319 |
:
}
|
aee18c74 |
function stop_bigswitch_floodlight { |
4b26d319 |
:
}
|
aee18c74 |
function check_bigswitch_floodlight { |
ef1e0802 |
:
}
|
4b26d319 |
# Restore xtrace |
e3a9160c |
$BS3_XTRACE |