blob: f15c9ba6b7f442fb5339c6516277e7f919f864ac [file] [log] [blame]
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +03001{#- 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 Dmitrievcf5f43b2017-10-11 15:10:27 +030010{#- _param:tenant_network_netmask #}
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +030011{#- _param:tenant_network_gateway #}
12{#- _param:_param:dns_server01 #}
13{#- _param:_param:dns_server02 #}
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +030014 # {{ interfaces_role }}
15 {%- for interface_name, interface in interfaces.items() %}
16 {{ interface_name }}:
17 mtu: 9000
18 enabled: true
abaraniukd2ccfae2018-11-08 13:52:32 +020019 master: bond0
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +030020 name: {{ interface_name }}
21 proto: manual
abaraniukd2ccfae2018-11-08 13:52:32 +020022 type: slave
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +030023 ipflush_onchange: true
24 {%- endfor %}
25 bond0:
26 mtu: 9000
27 enabled: true
28 mode: active-backup
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
41 br_ctl:
42 address: ${_param:_esc}{_param:single_address}
43 enabled: true
44 netmask: ${_param:_esc}{_param:control_network_netmask}
45 proto: static
46 type: bridge
47 use_interfaces:
48 - bond0.${_param:_esc}{_param:control_vlan}
49 require_interfaces:
50 - bond0.${_param:_esc}{_param:control_vlan}
51 bond0.control_vlan:
52 mtu: 9000
53 name: bond0.${_param:_esc}{_param:control_vlan}
54 enabled: true
55 proto: manual
56 type: vlan
57 use_interfaces:
58 - bond0
59 require_interfaces:
60 - bond0
61
62 vhost0:
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +030063 address: ${_param:_esc}{_param:tenant_address}
64 netmask: ${_param:_esc}{_param:tenant_network_netmask}
Dennis Dmitrievf4826bc2017-09-28 19:03:54 +030065 enabled: true
66 proto: static
67 type: eth
68 pre_up_cmds:
69 - /usr/lib/contrail/if-vhost0
70 name_servers:
71 - ${_param:_esc}{_param:dns_server01}
72 - ${_param:_esc}{_param:dns_server02}
73 use_interfaces:
74 - bond0.${_param:_esc}{_param:tenant_vlan}
75 require_interfaces:
76 - bond0.${_param:_esc}{_param:tenant_vlan}
77 bond0.tenant_vlan:
78 mtu: 9000
79 name: bond0.${_param:_esc}{_param:tenant_vlan}
80 enabled: true
81 proto: manual
82 type: vlan
83 use_interfaces:
84 - bond0
85 require_interfaces:
sgudz3dcf8f72017-10-18 17:31:01 +030086 - bond0