scottslowe-learning-tools/ovs-ovn/ovn/setup.sh.j2
Scott Lowe 43ab5524a2
Reorganize repository contents
Move contents into new folder structure based on primary technology

Signed-off-by: Scott Lowe <scott.lowe@scottlowe.org>
2017-02-23 16:12:37 -07:00

14 lines
472 B
Django/Jinja

#!/bin/bash
# Stop the ovn-controller daemon
sudo /usr/share/openvswitch/scripts/ovn-ctl stop_controller
# Configure OVS
sudo ovs-vsctl set Open_vSwitch . \
external_ids:ovn-remote="tcp:192.168.100.101:6642" \
external_ids:ovn-nb="tcp:192.168.100.101:6641" \
external_ids:ovn-encap-ip={{ ansible_enp0s8.ipv4.address }} \
external_ids:ovn-encap-type="geneve"
# Start the ovn-controller daemon
sudo /usr/share/openvswitch/scripts/ovn-ctl start_controller