Dennis Dmitriev | f4826bc | 2017-09-28 19:03:54 +0300 | [diff] [blame] | 1 | {#- Tenant over VXLAN. For gateway and compute nodes #} |
| 2 | {#- Provides: #} |
| 3 | {#- br_ctl (OVS bridge) + control address #} |
| 4 | {#- br_mesh (OVS bridge) + tenant address #} |
| 5 | {#- Requirements: #} |
| 6 | {#- _param:single_address #} |
| 7 | {#- _param:control_network_netmask #} |
| 8 | {#- _param:control_vlan #} |
| 9 | {#- _param:tenant_address #} |
| 10 | {#- _param:tenant_netmask #} |
| 11 | {#- _param:tenant_vlan #} |
Dennis Dmitriev | f4826bc | 2017-09-28 19:03:54 +0300 | [diff] [blame] | 12 | # {{ interfaces_role }} |
Dennis Dmitriev | 600e6ee | 2018-02-20 03:55:49 +0200 | [diff] [blame] | 13 | {{- set_param('linux_network_bridge', 'openvswitch') }} |
Dennis Dmitriev | f4826bc | 2017-09-28 19:03:54 +0300 | [diff] [blame] | 14 | {%- for interface_name, interface in interfaces.items() %} |
| 15 | {{ interface_name }}: |
| 16 | mtu: 9000 |
| 17 | enabled: true |
| 18 | master: bond0 # ? |
| 19 | name: {{ interface_name }} |
| 20 | proto: manual |
| 21 | type: slave # ? |
| 22 | ipflush_onchange: true |
| 23 | {%- endfor %} |
| 24 | bond0: |
| 25 | enabled: true |
| 26 | mode: active-backup |
| 27 | ovs_bridge: br-ten |
| 28 | ovs_type: OVSPort |
| 29 | proto: manual |
| 30 | slaves: {{ ' '.join(interfaces.keys()) }} |
| 31 | type: bond |
| 32 | use_interfaces: |
| 33 | {%- for interface_name in interfaces.keys() %} |
| 34 | - {{ interface_name }} |
| 35 | {%- endfor %} |
| 36 | require_interfaces: |
| 37 | {%- for interface_name in interfaces.keys() %} |
| 38 | - {{ interface_name }} |
| 39 | {%- endfor %} |
| 40 | br-ten: |
| 41 | enabled: true |
| 42 | type: ovs_bridge |
| 43 | br_ctl: |
| 44 | address: ${_param:_esc}{_param:single_address} |
| 45 | bridge: br-ten |
| 46 | enabled: true |
| 47 | netmask: ${_param:_esc}{_param:control_network_netmask} |
| 48 | ovs_options: tag=${_param:_esc}{_param:control_vlan} |
| 49 | proto: static |
| 50 | type: ovs_port |
| 51 | require_interfaces: |
| 52 | - br-ten |
| 53 | br-mesh: |
| 54 | enabled: true |
| 55 | type: ovs_port |
| 56 | bridge: br-ten |
| 57 | proto: static |
| 58 | ovs_options: tag=${_param:_esc}{_param:tenant_vlan} |
| 59 | address: ${_param:_esc}{_param:tenant_address} |
| 60 | netmask: ${_param:_esc}{_param:tenant_network_netmask} |
| 61 | require_interfaces: |
Dennis Dmitriev | cf5f43b | 2017-10-11 15:10:27 +0300 | [diff] [blame] | 62 | - br-ten |