Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / net-config-linux-bridge.yaml
1 heat_template_version: pike
2 description: >
3   Software Config to drive os-net-config for a simple bridge.
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   ControlPlaneDefaultRoute: # Override this via parameter_defaults
34     description: The default route of the control plane network.
35     type: string
36     default: 192.168.24.1
37   EC2MetadataIp: # Override this via parameter_defaults
38     description: The IP address of the EC2 metadata server.
39     type: string
40     default: 169.254.169.254/32
41 resources:
42   OsNetConfigImpl:
43     type: OS::Heat::SoftwareConfig
44     properties:
45       group: script
46       config:
47         str_replace:
48           template:
49             get_file: network/scripts/run-os-net-config.sh
50           params:
51             $network_config:
52               network_config:
53               - type: linux_bridge
54                 name: bridge_name
55                 addresses:
56                 - ip_netmask:
57                     get_param: ControlPlaneIp
58                 members:
59                 - type: interface
60                   name: interface_name
61                   # force the MAC address of the bridge to this interface
62                   primary: true
63                 routes:
64                 - ip_netmask: 0.0.0.0/0
65                   next_hop:
66                     get_param: ControlPlaneDefaultRoute
67                   default: true
68                 - ip_netmask:
69                     get_param: EC2MetadataIp
70                   next_hop:
71                     get_param: ControlPlaneDefaultRoute
72 outputs:
73   OS::stack_id:
74     description: The OsNetConfigImpl resource.
75     value:
76       get_resource: OsNetConfigImpl
77