Dennis Dmitriev | f4826bc | 2017-09-28 19:03:54 +0300 | [diff] [blame] | 1 | {#- Provides: #} |
| 2 | {#- br_ctl (linux bridge) + control address #} |
| 3 | {#- vhost0 #} |
| 4 | {#- Requirements: #} |
| 5 | {#- _param:single_address #} |
| 6 | {#- _param:control_vlan #} |
| 7 | {#- _param:control_network_netmask #} |
| 8 | {#- _param:tenant_vlan #} |
| 9 | {#- _param:tenant_address #} |
Dennis Dmitriev | cf5f43b | 2017-10-11 15:10:27 +0300 | [diff] [blame] | 10 | {#- _param:tenant_network_netmask #} |
Dennis Dmitriev | f4826bc | 2017-09-28 19:03:54 +0300 | [diff] [blame] | 11 | {#- _param:tenant_network_gateway #} |
| 12 | {#- _param:_param:dns_server01 #} |
| 13 | {#- _param:_param:dns_server02 #} |
Dennis Dmitriev | f4826bc | 2017-09-28 19:03:54 +0300 | [diff] [blame] | 14 | # {{ interfaces_role }} |
| 15 | {%- for interface_name, interface in interfaces.items() %} |
| 16 | {{ interface_name }}: |
| 17 | mtu: 9000 |
| 18 | enabled: true |
| 19 | name: {{ interface_name }} |
| 20 | proto: manual |
| 21 | type: eth |
| 22 | ipflush_onchange: true |
| 23 | {%- endfor %} |
| 24 | bond0: |
| 25 | mtu: 9000 |
| 26 | enabled: true |
| 27 | mode: active-backup |
| 28 | proto: manual |
| 29 | slaves: {{ ' '.join(interfaces.keys()) }} |
| 30 | type: bond |
| 31 | use_interfaces: |
| 32 | {%- for interface_name in interfaces.keys() %} |
| 33 | - {{ interface_name }} |
| 34 | {%- endfor %} |
| 35 | require_interfaces: |
| 36 | {%- for interface_name in interfaces.keys() %} |
| 37 | - {{ interface_name }} |
| 38 | {%- endfor %} |
| 39 | |
| 40 | br_ctl: |
| 41 | address: ${_param:_esc}{_param:single_address} |
| 42 | enabled: true |
| 43 | netmask: ${_param:_esc}{_param:control_network_netmask} |
| 44 | proto: static |
| 45 | type: bridge |
| 46 | use_interfaces: |
| 47 | - bond0.${_param:_esc}{_param:control_vlan} |
| 48 | require_interfaces: |
| 49 | - bond0.${_param:_esc}{_param:control_vlan} |
| 50 | bond0.control_vlan: |
| 51 | mtu: 9000 |
| 52 | name: bond0.${_param:_esc}{_param:control_vlan} |
| 53 | enabled: true |
| 54 | proto: manual |
| 55 | type: vlan |
| 56 | use_interfaces: |
| 57 | - bond0 |
| 58 | require_interfaces: |
| 59 | - bond0 |
| 60 | |
| 61 | vhost0: |
Dennis Dmitriev | f4826bc | 2017-09-28 19:03:54 +0300 | [diff] [blame] | 62 | address: ${_param:_esc}{_param:tenant_address} |
| 63 | netmask: ${_param:_esc}{_param:tenant_network_netmask} |
Dennis Dmitriev | f4826bc | 2017-09-28 19:03:54 +0300 | [diff] [blame] | 64 | enabled: true |
| 65 | proto: static |
| 66 | type: eth |
| 67 | pre_up_cmds: |
| 68 | - /usr/lib/contrail/if-vhost0 |
| 69 | name_servers: |
| 70 | - ${_param:_esc}{_param:dns_server01} |
| 71 | - ${_param:_esc}{_param:dns_server02} |
| 72 | use_interfaces: |
| 73 | - bond0.${_param:_esc}{_param:tenant_vlan} |
| 74 | require_interfaces: |
| 75 | - bond0.${_param:_esc}{_param:tenant_vlan} |
| 76 | bond0.tenant_vlan: |
| 77 | mtu: 9000 |
| 78 | name: bond0.${_param:_esc}{_param:tenant_vlan} |
| 79 | enabled: true |
| 80 | proto: manual |
| 81 | type: vlan |
| 82 | use_interfaces: |
| 83 | - bond0 |
| 84 | require_interfaces: |
sgudz | 3dcf8f7 | 2017-10-18 17:31:01 +0300 | [diff] [blame] | 85 | - bond0 |