Skip to content

Instantly share code, notes, and snippets.

@tonytan4ever
Created November 7, 2017 06:17
Show Gist options
  • Save tonytan4ever/76ff50669e969c8f047af4a1410557e3 to your computer and use it in GitHub Desktop.
Save tonytan4ever/76ff50669e969c8f047af4a1410557e3 to your computer and use it in GitHub Desktop.
Install ovs ml2 driver in AIO
#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