sgudz | 75d1c7e | 2019-06-05 15:05:27 +0300 | [diff] [blame] | 1 | {#- Tenant over VXLAN. For gateway nodes. Used for virtual deploys. #} |
| 2 | {#- Because we don't use tagging of switch ports, we shouldn't use tag on br-mesh#} |
| 3 | {#- Provides: #} |
| 4 | {#- br_mesh (OVS bridge) + tenant address #} |
| 5 | {#- Requirements: #} |
| 6 | {#- _param:tenant_address #} |
| 7 | {#- _param:tenant_netmask #} |
| 8 | {#- _param:tenant_vlan #} |
| 9 | # {{ interfaces_role }} |
| 10 | {{- set_param('linux_network_bridge', 'openvswitch') }} |
| 11 | {%- for interface_name, interface in interfaces.items() %} |
| 12 | {{ interface_name }}: |
| 13 | mtu: 9000 |
| 14 | enabled: true |
| 15 | name: {{ interface_name }} |
| 16 | proto: manual |
| 17 | type: eth |
| 18 | ipflush_onchange: true |
| 19 | br-mesh: |
| 20 | enabled: true |
| 21 | type: bridge |
| 22 | proto: static |
| 23 | address: ${_param:_esc}{_param:tenant_address} |
| 24 | netmask: ${_param:_esc}{_param:tenant_network_netmask} |
| 25 | use_interfaces: |
| 26 | - {{ interface_name }} |
| 27 | require_interfaces: |
| 28 | - {{ interface_name }} |
| 29 | {%- endfor %} |