Add BondInterfaceOvsOptions parameter
[apex-tripleo-heat-templates.git] / network / config / single-nic-vlans / compute.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   compute 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: 20
50                   addresses:
51                   -
52                     ip_netmask: {get_param: InternalApiIpSubnet}
53                 -
54                   type: vlan
55                   vlan_id: 30
56                   addresses:
57                   -
58                     ip_netmask: {get_param: StorageIpSubnet}
59                 -
60                   type: vlan
61                   vlan_id: 50
62                   addresses:
63                   -
64                     ip_netmask: {get_param: TenantIpSubnet}
65
66 outputs:
67   OS::stack_id:
68     description: The OsNetConfigImpl resource.
69     value: {get_resource: OsNetConfigImpl}