blob: b32525466492f4ba820083913c6dfa4356383f33 [file] [log] [blame]
abaraniuka13daf32019-02-15 14:29:12 +02001{#- Control network. For control plane nodes #}
2{#- +Route for access to contrail API #}
3{#- +Route for access to internal https API #}
4{#- Provides: #}
5{#- br_ctl (linux bridge) + address #}
6{#- Requires: #}
7{#- _param:single_address #}
8{#- _param:control_network_netmask #}
9{#- _param:tenant_network_subnet #}
10{#- _param:opencontrail_router01_address #}
11{#- _param:control_vlan #}
12{#- _param:dns_server01 #}
13{#- _param:dns_server02 #}
14 # {{ interfaces_role }}
15 {%- set interface_name = interfaces.keys()[0] %}
16 {{ interface_name }}:
17 enabled: true
18 name: {{ interface_name }}
19 proto: manual
20 type: eth
21 ipflush_onchange: true
22 br_ctl:
23 enabled: true
24 address: ${_param:_esc}{_param:single_address}
25 netmask: ${_param:_esc}{_param:control_network_netmask}
26 proto: static
27 type: bridge
28 name_servers:
29 - ${_param:_esc}{_param:dns_server01}
30 - ${_param:_esc}{_param:dns_server02}
31 use_interfaces:
32 - {{ interface_name }}.${_param:_esc}{_param:control_vlan}
33 require_interfaces:
34 - {{ interface_name }}.${_param:_esc}{_param:control_vlan}
35 post_up_cmds:
36 - ip r rep 10.254.0.0/16 via ${_param:_esc}{_param:single_address}
37 - ip r rep ${_param:_esc}{_param:tenant_network_subnet} via ${_param:_esc}{_param:opencontrail_router01_address}
38 {{ interface_name }}.control_vlan:
39 name: {{ interface_name }}.${_param:_esc}{_param:control_vlan}
40 enabled: true
41 proto: manual
42 type: vlan
43 use_interfaces:
44 - {{ interface_name }}
45 require_interfaces:
46 - {{ interface_name }}