Dennis Dmitriev | f4826bc | 2017-09-28 19:03:54 +0300 | [diff] [blame] | 1 | {#- Tenant over VLAN. For computes without dvr #} |
| 2 | {#- Provides: #} |
| 3 | {#- br_ctl (OVS bridge) + control address #} |
| 4 | {#- br_prv (OVS bridge) #} |
| 5 | {#- Requirements: #} |
| 6 | {#- _param:single_address #} |
| 7 | {#- _param:control_network_netmask #} |
| 8 | {#- _param:control_vlan #} |
Dennis Dmitriev | f4826bc | 2017-09-28 19:03:54 +0300 | [diff] [blame] | 9 | # {{ interfaces_role }} |
Dennis Dmitriev | 600e6ee | 2018-02-20 03:55:49 +0200 | [diff] [blame] | 10 | {{- set_param('linux_network_bridge', 'openvswitch') }} |
Dennis Dmitriev | f4826bc | 2017-09-28 19:03:54 +0300 | [diff] [blame] | 11 | {%- for interface_name, interface in interfaces.items() %} |
| 12 | {{ interface_name }}: |
| 13 | mtu: 9000 |
| 14 | enabled: true |
| 15 | master: bond0 # ? |
| 16 | name: {{ interface_name }} |
| 17 | proto: manual |
| 18 | type: slave # ? |
| 19 | ipflush_onchange: true |
| 20 | {%- endfor %} |
| 21 | bond0: |
| 22 | enabled: true |
| 23 | mode: active-backup |
| 24 | ovs_bridge: br-prv |
| 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-prv: |
| 38 | enabled: true |
| 39 | type: ovs_bridge |
| 40 | br_ctl: |
| 41 | address: ${_param:_esc}{_param:single_address} |
| 42 | bridge: br-prv |
| 43 | enabled: true |
| 44 | netmask: ${_param:_esc}{_param:control_network_netmask} |
| 45 | ovs_options: tag=${_param:_esc}{_param:control_vlan} |
| 46 | proto: static |
| 47 | type: ovs_port |
| 48 | require_interfaces: |
Dennis Dmitriev | cf5f43b | 2017-10-11 15:10:27 +0300 | [diff] [blame] | 49 | - br-prv |