Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / net-config-undercloud.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   DnsServers: # Override this via parameter_defaults
38     default: []
39     description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
40     type: comma_delimited_list
41 resources:
42   OsNetConfigImpl:
43     type: OS::Heat::SoftwareConfig
44     properties:
45       group: script
46       inputs:
47         - name: disable_configure_safe_defaults
48           default: true
49       config:
50         str_replace:
51           template:
52             get_file: network/scripts/run-os-net-config.sh
53           params:
54             $network_config:
55               network_config:
56               - type: ovs_bridge
57                 name: br-ctlplane
58                 use_dhcp: false
59                 dns_servers:
60                   get_param: DnsServers
61                 addresses:
62                 - ip_netmask:
63                     list_join:
64                     - /
65                     - - get_param: ControlPlaneIp
66                       - get_param: ControlPlaneSubnetCidr
67                 members:
68                 - type: interface
69                   name: eth1
70                   # force the MAC address of the bridge to this interface
71                   primary: true
72 outputs:
73   OS::stack_id:
74     description: The OsNetConfigImpl resource.
75     value:
76       get_resource: OsNetConfigImpl
77