Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / net-config-static-bridge-with-external-dhcp.yaml
1 heat_template_version: pike
2 description: >
3   Software Config to drive os-net-config for a simple bridge configured with a static IP address for the ctlplane network.
4 parameters:
5   ControlPlaneIp:
6     default: ''
7     description: IP address/subnet on the ctlplane network
8     type: string
9   ExternalIpSubnet:
10     default: ''
11     description: IP address/subnet on the external network
12     type: string
13   InternalApiIpSubnet:
14     default: ''
15     description: IP address/subnet on the internal_api network
16     type: string
17   StorageIpSubnet:
18     default: ''
19     description: IP address/subnet on the storage network
20     type: string
21   StorageMgmtIpSubnet:
22     default: ''
23     description: IP address/subnet on the storage_mgmt network
24     type: string
25   TenantIpSubnet:
26     default: ''
27     description: IP address/subnet on the tenant network
28     type: string
29   ManagementIpSubnet:
30     default: ''
31     description: IP address/subnet on the management network
32     type: string
33   ControlPlaneSubnetCidr: # Override this via parameter_defaults
34     default: '24'
35     description: The subnet CIDR of the control plane network.
36     type: string
37   ControlPlaneDefaultRoute: # Override this via parameter_defaults
38     description: The default route of the control plane network.
39     type: string
40   DnsServers: # Override this via parameter_defaults
41     default: []
42     description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
43     type: comma_delimited_list
44   EC2MetadataIp: # Override this via parameter_defaults
45     description: The IP address of the EC2 metadata server.
46     type: string
47 resources:
48   OsNetConfigImpl:
49     type: OS::Heat::SoftwareConfig
50     properties:
51       group: script
52       config:
53         str_replace:
54           template:
55             get_file: network/scripts/run-os-net-config.sh
56           params:
57             $network_config:
58               network_config:
59               - type: ovs_bridge
60                 name: bridge_name
61                 use_dhcp: true
62                 members:
63                 - type: interface
64                   name: interface_name
65                   # force the MAC address of the bridge to this interface
66                   primary: true
67               - type: interface
68                 name: br-ex:0
69                 addresses:
70                 - ip_netmask:
71                     list_join:
72                     - /
73                     - - get_param: ControlPlaneIp
74                       - get_param: ControlPlaneSubnetCidr
75                 routes:
76                 - ip_netmask: 169.254.169.254/32
77                   next_hop:
78                     get_param: EC2MetadataIp
79                 - default: true
80                   next_hop:
81                     get_param: ControlPlaneDefaultRoute
82 outputs:
83   OS::stack_id:
84     description: The OsNetConfigImpl resource.
85     value:
86       get_resource: OsNetConfigImpl
87