Merge "ovn: make DVR work on VLAN tenant networks" into stable/victoria

This commit is contained in:
Zuul 2021-05-17 10:08:27 +00:00 committed by Gerrit Code Review
commit bae4030e18
3 changed files with 15 additions and 0 deletions

View File

@ -88,5 +88,7 @@ ovn_sb_db_extra_volumes: "{{ ovn_extra_volumes }}"
#####
# OVN
#####
# Base MAC for ovn-chassis-mac-mappings generation
ovn_base_mac: "52:54:00"
# Configure OVN remote probe interval time in ms
ovn_remote_probe_interval: "60000"

View File

@ -36,6 +36,14 @@
- inventory_hostname in groups["openvswitch"]
- inventory_hostname not in groups["ovn-controller-network"]
- name: Set OVN chassis mac mappings
vars:
ovn_macs: "{% for bridge in neutron_bridge_name.split(',') %}physnet{{ loop.index0 + 1 }}:{{ ovn_base_mac | random_mac(seed=inventory_hostname+bridge) }}{% if not loop.last %},{% endif %}{% endfor %}"
become: true
command: docker exec openvswitch_vswitchd ovs-vsctl set Open_vSwitch . external_ids:ovn-chassis-mac-mappings={{ ovn_macs }}
when:
- inventory_hostname in groups["ovn-controller-compute"]
- name: Set OVN remote probe interval
become: true
command: >

View File

@ -0,0 +1,5 @@
---
features:
- |
OVN deployment will now configure ``external_ids:ovn-chassis-mac-mappings``
to make DVR work on VLAN tenant networks.