Dennis Dmitriev | f4826bc | 2017-09-28 19:03:54 +0300 | [diff] [blame] | 1 | {#- Tenant over VXLAN. For computes without dvr #} |
| 2 | {#- Provides: #} |
| 3 | {#- br_ctl (linux bridge) + control address #} |
| 4 | {#- br_mesh (linux 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 }} |
| 13 | {%- for interface_name, interface in interfaces.items() %} |
| 14 | {{ interface_name }}: |
| 15 | mtu: 9000 |
| 16 | enabled: true |
| 17 | name: {{ interface_name }} |
| 18 | proto: manual |
| 19 | type: eth |
| 20 | ipflush_onchange: true |
| 21 | {%- endfor %} |
| 22 | bond0: |
| 23 | enabled: true |
| 24 | mode: active-backup |
| 25 | proto: manual |
| 26 | slaves: {{ ' '.join(interfaces.keys()) }} |
| 27 | type: bond |
| 28 | use_interfaces: |
| 29 | {%- for interface_name in interfaces.keys() %} |
| 30 | - {{ interface_name }} |
| 31 | {%- endfor %} |
| 32 | require_interfaces: |
| 33 | {%- for interface_name in interfaces.keys() %} |
| 34 | - {{ interface_name }} |
| 35 | {%- endfor %} |
| 36 | |
| 37 | br_ctl: |
| 38 | address: ${_param:_esc}{_param:single_address} |
| 39 | enabled: true |
| 40 | netmask: ${_param:_esc}{_param:control_network_netmask} |
| 41 | proto: static |
| 42 | type: bridge |
| 43 | use_interfaces: |
| 44 | - bond0.${_param:_esc}{_param:control_vlan} |
| 45 | require_interfaces: |
| 46 | - bond0.${_param:_esc}{_param:control_vlan} |
| 47 | bond0.control_vlan: |
| 48 | name: bond0.${_param:_esc}{_param:control_vlan} |
| 49 | enabled: true |
| 50 | proto: manual |
| 51 | type: vlan |
| 52 | use_interfaces: |
| 53 | - bond0 |
| 54 | require_interfaces: |
| 55 | - bond0 |
| 56 | |
| 57 | br_mesh: |
| 58 | address: ${_param:_esc}{_param:tenant_address} |
| 59 | netmask: ${_param:_esc}{_param:tenant_network_netmask} |
| 60 | enabled: true |
| 61 | proto: static |
| 62 | type: bridge |
| 63 | use_interfaces: |
| 64 | - bond0.${_param:_esc}{_param:tenant_vlan} |
| 65 | require_interfaces: |
| 66 | - bond0.${_param:_esc}{_param:tenant_vlan} |
| 67 | bond0.tenant_vlan: |
| 68 | name: bond0.${_param:_esc}{_param:tenant_vlan} |
| 69 | enabled: true |
| 70 | proto: manual |
| 71 | type: vlan |
| 72 | use_interfaces: |
| 73 | - bond0 |
| 74 | require_interfaces: |
Dennis Dmitriev | cf5f43b | 2017-10-11 15:10:27 +0300 | [diff] [blame] | 75 | - bond0 |