blob: 9a8ec912a2b6d21724e14b1a6cf1820f7d6d3a79 [file] [log] [blame]
sgudz1a843992018-05-24 16:15:26 +03001{#- Control network with mgm. For compute nodes using 1 interface for mgm and ctl+vlan #}
2{#- Provides: #}
3{#- Requirements: #}
4{#- _param:single_address #}
5{#- _param:deploy_address #}
6{#- _param:deploy_network_netmask #}
7{#- _param:deploy_network_gateway #}
8{#- _param:control_network_netmask #}
9{#- _param:control_vlan #}
10
11 # {{ interfaces_role }}
12 {%- for interface_name, interface in interfaces.items() %}
13 {{ interface_name }}:
14 mtu: 9000
15 enabled: true
16 name: {{ interface_name }}
17 type: eth
18 proto: dhcp
19
20 {{ interface_name }}.control_vlan:
21 mtu: 9000
22 name: {{ interface_name }}.${_param:_esc}{_param:control_vlan}
23 address: ${_param:_esc}{_param:single_address}
24 enabled: true
25 netmask: ${_param:_esc}{_param:control_network_netmask}
26 proto: static
27 type: vlan
28 {%- endfor %}