Adding Adjustment for ovsdb

This will allow us to switch between native or vsctl

Change-Id: Id6636231873986e9a9b80e0174bf23666a4416b2
This commit is contained in:
Joe Talerico 2016-05-31 09:02:43 -04:00
parent 134a923613
commit 009ce02548
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,9 @@
---
#
# Neutron handlers for browbeat adjustment
#
- name: restart neutron services
service: name={{ item }} state=restarted
with_items:
- neutron-openvswitch-agent

View File

@ -0,0 +1,15 @@
- name: Configure the ovsdb driver
ini_file:
dest: "{{ item.file }}"
mode: 0640
section: "{{ item.section }}"
option: "{{ item.option }}"
value: "{{ item.value }}"
backup: yes
with_items:
- { file: /etc/neutron/plugins/ml2/openvswitch_agent.ini, section: ovs, option: ovsdb_interface, value: "{{ driver }}" }
notify:
- unmanage neutron services
- restart neutron services
- manage neutron services
- cleanup neutron services