Oleksii Butenko | 36d0827 | 2019-02-22 16:43:43 +0200 | [diff] [blame] | 1 | {#- Tenant over VXLAN. For gateway nodes and computes with dvr #} |
| 2 | {#- Provides: #} |
| 3 | {#- br_mesh (OVS bridge) + tenant address #} |
| 4 | {#- br_floating (OVS bridge) #} |
| 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 | master: bond1 # ? |
| 16 | name: {{ interface_name }} |
| 17 | proto: manual |
| 18 | type: slave # ? |
| 19 | ipflush_onchange: true |
| 20 | {%- endfor %} |
| 21 | bond1: |
| 22 | enabled: true |
| 23 | mode: '802.3ad' |
| 24 | ovs_bridge: br-floating |
| 25 | ovs_type: OVSPort |
| 26 | proto: manual |
| 27 | slaves: {{ ' '.join(interfaces.keys()) }} |
| 28 | type: bond |
| 29 | use_interfaces: |
| 30 | {%- for interface_name in interfaces.keys() %} |
| 31 | - {{ interface_name }} |
| 32 | {%- endfor %} |
| 33 | require_interfaces: |
| 34 | {%- for interface_name in interfaces.keys() %} |
| 35 | - {{ interface_name }} |
| 36 | {%- endfor %} |
| 37 | br-floating: |
| 38 | enabled: true |
| 39 | type: ovs_bridge |
| 40 | br-mesh: |
| 41 | enabled: true |
| 42 | type: ovs_port |
| 43 | bridge: br-floating |
| 44 | proto: static |
| 45 | ovs_options: tag=${_param:_esc}{_param:tenant_vlan} |
| 46 | address: ${_param:_esc}{_param:tenant_address} |
| 47 | netmask: ${_param:_esc}{_param:tenant_network_netmask} |
| 48 | require_interfaces: |
| 49 | - br-floating |