Merge "adding multiple ovs manager"

This commit is contained in:
Jenkins 2017-10-04 17:06:21 +00:00 committed by Gerrit Code Review
commit c4eb683c55
2 changed files with 8 additions and 1 deletions

View File

@ -43,7 +43,7 @@
changed_when: False
- name: Set ODL as OvS manager
command: ovs-vsctl set-manager tcp:{{ odl_ip }}:6640
command: ovs-vsctl set-manager {{ ovs_manager_list }}
when: ovs_manager.stdout == ""
- name: Configure hosts for networking-odl, force kernel datapath

View File

@ -236,6 +236,13 @@ neutron_tunnel_types: "{{ neutron_ml2_drivers_type.split(',') | difference(_neut
opendaylight_extra_features: ['odl-netvirt-openstack']
opendaylight_install_method: "{{ (ansible_os_family=='Debian') | ternary('deb_repo', 'rpm_repo') }}"
ovs_manager_list: |-
{% set ovs_managers_odls = [] %}
{% for host in groups["neutron_server_container"] %}
{% set odl_ip_address = hostvars[host]['container_address']|string %}
{% set _ = ovs_managers_odls.append('tcp:' + odl_ip_address + ':6640') %}
{% endfor %}
{{ ovs_managers_odls | join(' ') }}
###
### L3 Agent Plugin Configuration