Dynamic ovn-encap-type configuration

Set ovn-encap-type to intersection of
`neutron_provider_networks.network_types.split` and ovn-controllers supported
tunnel types.

Change-Id: I2f385466dccd9aee734685ad488cf12194ae00d9
Related-Bug: #1951517
This commit is contained in:
Danila Balagansky 2022-07-21 12:41:48 +03:00 committed by James Denton
parent ef764770e2
commit 7ab11796ee

View File

@ -31,9 +31,8 @@
when:
- neutron_services['neutron-ovn-controller']['group'] in group_names
# (todo) Dynamic encap type
- name: Configure Supported OVN Overlay Protocols
command: "ovs-vsctl set open . external-ids:ovn-encap-type=geneve,vxlan"
command: "ovs-vsctl set open . external-ids:ovn-encap-type={{ neutron_provider_networks.network_types.split(',') | intersect(['geneve', 'vxlan', 'stt']) | join(',') }}"
when:
- neutron_services['neutron-ovn-controller']['group'] in group_names