1546d349b1
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
24 lines
566 B
YAML
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
|