Merge "Add BondInterfaceOvsOptions parameter"
[apex-tripleo-heat-templates.git] / network / config / single-nic-vlans / controller.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   Software Config to drive os-net-config to configure VLANs for the
5   controller role.
6
7 parameters:
8   ExternalIpSubnet:
9     default: ''
10     description: IP address/subnet on the external network
11     type: string
12   InternalApiIpSubnet:
13     default: ''
14     description: IP address/subnet on the internal API network
15     type: string
16   StorageIpSubnet:
17     default: ''
18     description: IP address/subnet on the storage network
19     type: string
20   StorageMgmtIpSubnet:
21     default: ''
22     description: IP address/subnet on the storage mgmt network
23     type: string
24   TenantIpSubnet:
25     default: ''
26     description: IP address/subnet on the tenant network
27     type: string
28
29 resources:
30   OsNetConfigImpl:
31     type: OS::Heat::StructuredConfig
32     properties:
33       group: os-apply-config
34       config:
35         os_net_config:
36           network_config:
37             -
38               type: ovs_bridge
39               name: {get_input: bridge_name}
40               use_dhcp: true
41               members:
42                 -
43                   type: interface
44                   name: nic1
45                   # force the MAC address of the bridge to this interface
46                   primary: true
47                 -
48                   type: vlan
49                   vlan_id: 10
50                   addresses:
51                   -
52                     ip_netmask: {get_param: ExternalIpSubnet}
53                 -
54                   type: vlan
55                   vlan_id: 20
56                   addresses:
57                   -
58                     ip_netmask: {get_param: InternalApiIpSubnet}
59                 -
60                   type: vlan
61                   vlan_id: 30
62                   addresses:
63                   -
64                     ip_netmask: {get_param: StorageIpSubnet}
65                 -
66                   type: vlan
67                   vlan_id: 40
68                   addresses:
69                   -
70                     ip_netmask: {get_param: StorageMgmtIpSubnet}
71                 -
72                   type: vlan
73                   vlan_id: 50
74                   addresses:
75                   -
76                     ip_netmask: {get_param: TenantIpSubnet}
77
78 outputs:
79   OS::stack_id:
80     description: The OsNetConfigImpl resource.
81     value: {get_resource: OsNetConfigImpl}