2 if [[ $nics_cfg == *_private* ]]; then
3 private_net=$( cat << END
6 # Create a bridge which can also be used for VLAN-mode bridge mapping
12 ip_netmask: {get_param: TenantIpSubnet}
18 # force the MAC address of the bridge to this interface
24 if [[ $nics_cfg == *_storage* ]]; then
25 storage_net=$( cat << END
32 ip_netmask: {get_param: StorageIpSubnet}
37 if [[ $nics_cfg == *_br-ex* ]]; then
44 # force the MAC address of the bridge to this interface
53 name: {get_input: bridge_name}
67 if [[ $nics_cfg == *_no-public-ip* ]]; then
68 if [[ $nics_cfg == *_br-ex* ]]; then
83 ip_netmask: {get_param: ExternalIpSubnet}
87 next_hop: {get_param: ExternalInterfaceDefaultRoute}
93 heat_template_version: 2015-04-30
96 Software Config to drive os-net-config to configure multiple interfaces
102 description: IP address/subnet on the ctlplane network
106 description: IP address/subnet on the external network
110 description: IP address/subnet on the internal API network
114 description: IP address/subnet on the storage network
118 description: IP address/subnet on the storage mgmt network
120 StorageMgmtNetworkVlanID:
122 description: Vlan ID for the storage mgmt network traffic.
126 description: IP address/subnet on the tenant network
128 ManagementIpSubnet: # Only populated when including environments/network-management.yaml
130 description: IP address/subnet on the management network
132 ExternalNetworkVlanID:
134 description: Vlan ID for the external network traffic.
136 InternalApiNetworkVlanID:
138 description: Vlan ID for the internal_api network traffic.
140 StorageNetworkVlanID:
142 description: Vlan ID for the storage network traffic.
146 description: Vlan ID for the tenant network traffic.
148 ManagementNetworkVlanID:
150 description: Vlan ID for the management network traffic.
152 ExternalInterfaceDefaultRoute:
154 description: default route for the external network
156 ControlPlaneSubnetCidr: # Override this via parameter_defaults
158 description: The subnet CIDR of the control plane network.
160 ControlPlaneDefaultRoute: # Override this via parameter_defaults
161 description: The default route of the control plane network.
163 DnsServers: # Override this via parameter_defaults
165 description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
166 type: comma_delimited_list
167 EC2MetadataIp: # Override this via parameter_defaults
168 description: The IP address of the EC2 metadata server.
173 type: OS::Heat::StructuredConfig
175 group: os-apply-config
183 dns_servers: {get_param: DnsServers}
189 - - {get_param: ControlPlaneIp}
190 - {get_param: ControlPlaneSubnetCidr}
193 ip_netmask: 169.254.169.254/32
194 next_hop: {get_param: EC2MetadataIp}
197 next_hop: {get_param: ControlPlaneDefaultRoute}$private_net$nic3$br_ex
201 description: The OsNetConfigImpl resource.
202 value: {get_resource: OsNetConfigImpl}