Skip to content

Instantly share code, notes, and snippets.

@mavenugo
Created April 8, 2014 18:01
Show Gist options
  • Save mavenugo/10163998 to your computer and use it in GitHub Desktop.
Save mavenugo/10163998 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# odl_os_ovs.sh : Stands for OpenDaylight_OpenStack_Openvswith.sh (cant be more Open than this ;) )
if [ `whoami` != "root" ]; then
echo Please execute this script as superuser or with sudo previleges.
exit 1
fi
if [ "$#" -ne 1 ]; then
echo "Usage: odl_ovs_os.sh <tunnel-endpoint-ip-address>" >&2
echo " <tunnel-endpoint-ip-address> is same as the local-ip configuration done for ovs-neutron-agent in ovs_quantum_plugin.ini"
exit 1
fi
ovs-vsctl set-manager ptcp:6640
read ovstbl <<< $(ovs-vsctl get Open_vSwitch . _uuid)
ovs-vsctl set Open_vSwitch $ovstbl other_config={"local_ip"="$1"}
ovs-vsctl list Open_vSwitch .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment