os-vif/playbooks/openstack-tox-functional-ovs-with-sudo/pre.yaml
Rodolfo Alonso Hernandez 1546d349b1 Add native implementation OVSDB API
Added native implementation OVSDB API. Both APIs may be enabled
via configuration file. The default one is the CLI vsctl.

A new configuration variable, ``ovsdb_connection``, is added to
define the connection string for the OVSDB backend.

Added functional tests to vif_plug_ovs. This commit also includes
the base functions to execute functional tests and a set of them
to test the OVSDB APIs: native and ovs-vsctl.

Closes-Bug: #1666917
Change-Id: I86fbf8c67572e51889eb091d7bff7f9350b52481
2019-02-26 18:15:14 +00:00

24 lines
566 B
YAML

- hosts: all
name: Functional tests pre-tasks
tasks:
- name: Include OS-specific variables
include_vars: "{{ item }}"
with_first_found:
- "{{ ansible_distribution }}.yaml"
- "{{ ansible_os_family }}.yaml"
- name: Install Open vSwitch
become: yes
package:
name: "{{ ovs_package }}"
state: present
register: ovs_installed
- name: Start Open vSwitch
become: yes
service:
name: "{{ ovs_service }}"
state: started
enabled: yes
register: ovs_running