2 if [[ $nics_cfg == *_private* ]]; then
3 private_net=$( cat << END
5 # Create a bridge which can also be used for VLAN-mode bridge mapping
11 ip_netmask: {get_param: TenantIpSubnet}
17 # force the MAC address of the bridge to this interface
24 if [[ $nics_cfg == *_storage* ]]; then
25 storage_net=$( cat << END
33 ip_netmask: {get_param: StorageIpSubnet}
39 heat_template_version: 2015-04-30
42 Software Config to drive os-net-config to configure multiple interfaces
43 for the controller role.
48 description: IP address/subnet on the ctlplane network
52 description: IP address/subnet on the external network
56 description: IP address/subnet on the internal API network
60 description: IP address/subnet on the storage network
64 description: IP address/subnet on the storage mgmt network
68 description: IP address/subnet on the tenant network
70 ManagementIpSubnet: # Only populated when including environments/network-management.yaml
72 description: IP address/subnet on the management network
74 ExternalNetworkVlanID:
76 description: Vlan ID for the external network traffic.
78 InternalApiNetworkVlanID:
80 description: Vlan ID for the internal_api network traffic.
84 description: Vlan ID for the storage network traffic.
86 StorageMgmtNetworkVlanID:
88 description: Vlan ID for the storage mgmt network traffic.
92 description: Vlan ID for the tenant network traffic.
94 ExternalInterfaceDefaultRoute:
96 description: default route for the external network
98 ControlPlaneSubnetCidr: # Override this via parameter_defaults
100 description: The subnet CIDR of the control plane network.
102 ControlPlaneDefaultRoute: # Override this via parameter_defaults
103 description: The subnet CIDR of the control plane network.
105 DnsServers: # Override this via parameter_defaults
107 description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
108 type: comma_delimited_list
109 EC2MetadataIp: # Override this via parameter_defaults
110 description: The IP address of the EC2 metadata server.
115 type: OS::Heat::StructuredConfig
117 group: os-apply-config
125 dns_servers: {get_param: DnsServers}
131 - - {get_param: ControlPlaneIp}
132 - {get_param: ControlPlaneSubnetCidr}
135 ip_netmask: 169.254.169.254/32
136 next_hop: {get_param: EC2MetadataIp}
139 name: {get_input: bridge_name}
140 dns_servers: {get_param: DnsServers}
144 ip_netmask: {get_param: ExternalIpSubnet}
148 next_hop: {get_param: ExternalInterfaceDefaultRoute}
153 # force the MAC address of the bridge to this interface
154 primary: true$storage_net
158 description: The OsNetConfigImpl resource.
159 value: {get_resource: OsNetConfigImpl}