9badc4de21
Creates Openvswitch role and splits openvswitch from Neutron role to enable third party networking solutions that use Openvswitch or customize Openvswitch. For example Openvswitch with dpdk or OpenDaylight. Change-Id: I5a41c42c5ec0a5e6999b2570ddac0f5efc3102ee Co-Authored-By: Mauricio Lima <mauriciolimab@gmail.com> Partially-Implements: blueprint opendaylight-support
20 lines
571 B
YAML
20 lines
571 B
YAML
---
|
|
- name: Get container facts
|
|
kolla_container_facts:
|
|
name:
|
|
- openvswitch_db
|
|
register: container_facts
|
|
|
|
- name: Checking free port for OVSDB
|
|
vars:
|
|
openvswitch_db: "{{ openvswitch_services['openvswitch-db-server'] }}"
|
|
wait_for:
|
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
port: "{{ ovsdb_port }}"
|
|
connect_timeout: 1
|
|
state: stopped
|
|
when:
|
|
- container_facts['openvswitch_db'] is not defined
|
|
- inventory_hostname in groups[openvswitch_db.group]
|
|
- openvswitch_db.enabled | bool
|