adding multiple ovs manager
providing facility to add multiple ovs managers Change-Id: Ie1645371cda33eef58c3a018a5e8e7d0df885c40 Signed-off-by: pperiyasamy <periyasamy.palanisamy@ericsson.com> Signed-off-by: pperiyasamy <palani.peri@gmail.com> Signed-off-by: pperiyasamy <periyasamy.palanisamy@ericsson.com>
This commit is contained in:
parent
e56ae0fc59
commit
16d859f0a3
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user