Created
November 7, 2017 06:17
-
-
Save tonytan4ever/76ff50669e969c8f047af4a1410557e3 to your computer and use it in GitHub Desktop.
Install ovs ml2 driver in AIO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Setup OVS bridge in AIO neutron | |
- name: Setup OVS bridges | |
hosts: neutron_openvswitch_agent | |
user: root | |
pre_tasks: | |
- name: Make sure openvswitch is installed | |
apt: | |
name: openvswitch-switch | |
state: present | |
tasks: | |
- name: Setup br-provider | |
openvswitch_bridge: | |
bridge: br-provider | |
state: present | |
notify: | |
Restart neutron-openvswitch-agent | |
- name: Add port to br-provider | |
openvswitch_port: | |
bridge: br-provider | |
port: "" | |
state: present | |
notify: | |
Restart neutron-openvswitch-agent | |
handlers: | |
- name: Restart neutron-openvswitch-agent | |
service: | |
name: neutron-openvswitch-agent | |
state: restarted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment