Merge "Update VNI and TunnelID ranges."
[apex-tripleo-heat-templates.git] / network / config / bond-with-vlans / controller-no-external.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   Software Config to drive os-net-config with 2 bonded nics on a bridge
5   with VLANs attached for the 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   ManagementIpSubnet: # Only populated when including environments/network-management.yaml
29     default: ''
30     description: IP address/subnet on the management network
31     type: string
32   BondInterfaceOvsOptions:
33     default: ''
34     description: The ovs_options string for the bond interface. Set things like
35                  lacp=active and/or bond_mode=balance-slb using this option.
36     type: string
37   ExternalNetworkVlanID:
38     default: 10
39     description: Vlan ID for the external network traffic.
40     type: number
41   InternalApiNetworkVlanID:
42     default: 20
43     description: Vlan ID for the internal_api network traffic.
44     type: number
45   StorageNetworkVlanID:
46     default: 30
47     description: Vlan ID for the storage network traffic.
48     type: number
49   StorageMgmtNetworkVlanID:
50     default: 40
51     description: Vlan ID for the storage mgmt network traffic.
52     type: number
53   TenantNetworkVlanID:
54     default: 50
55     description: Vlan ID for the tenant network traffic.
56     type: number
57   ManagementNetworkVlanID:
58     default: 60
59     description: Vlan ID for the management network traffic.
60     type: number
61   ExternalInterfaceDefaultRoute:
62     default: '10.0.0.1'
63     description: default route for the external network
64     type: string
65
66 resources:
67   OsNetConfigImpl:
68     type: OS::Heat::StructuredConfig
69     properties:
70       group: os-apply-config
71       config:
72         os_net_config:
73           network_config:
74             -
75               type: ovs_bridge
76               name: {get_input: bridge_name}
77               use_dhcp: true
78               members:
79                 -
80                   type: ovs_bond
81                   name: bond1
82                   ovs_options: {get_param: BondInterfaceOvsOptions}
83                   members:
84                     -
85                       type: interface
86                       name: nic2
87                       primary: true
88                     -
89                       type: interface
90                       name: nic3
91                 -
92                   type: vlan
93                   device: bond1
94                   vlan_id: {get_param: InternalApiNetworkVlanID}
95                   addresses:
96                   -
97                     ip_netmask: {get_param: InternalApiIpSubnet}
98                 -
99                   type: vlan
100                   device: bond1
101                   vlan_id: {get_param: StorageNetworkVlanID}
102                   addresses:
103                   -
104                     ip_netmask: {get_param: StorageIpSubnet}
105                 -
106                   type: vlan
107                   device: bond1
108                   vlan_id: {get_param: StorageMgmtNetworkVlanID}
109                   addresses:
110                   -
111                     ip_netmask: {get_param: StorageMgmtIpSubnet}
112                 -
113                   type: vlan
114                   device: bond1
115                   vlan_id: {get_param: TenantNetworkVlanID}
116                   addresses:
117                   -
118                     ip_netmask: {get_param: TenantIpSubnet}
119                 # Uncomment when including environments/network-management.yaml
120                 #-
121                 #  type: vlan
122                 #  device: bond1
123                 #  vlan_id: {get_param: ManagementNetworkVlanID}
124                 #  addresses:
125                 #    -
126                 #      ip_netmask: {get_param: ManagementIpSubnet}
127
128 outputs:
129   OS::stack_id:
130     description: The OsNetConfigImpl resource.
131     value: {get_resource: OsNetConfigImpl}