Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / net-config-bond.yaml
1 heat_template_version: pike
2 description: >
3   Software Config to drive os-net-config with 2 bonded nics on a bridge.
4 parameters:
5   BondInterfaceOvsOptions:
6     default: ''
7     description: The ovs_options or bonding_options string for the bond
8       interface. Set things like lacp=active and/or bond_mode=balance-slb
9       for OVS bonds or like mode=4 for Linux bonds using this option.
10     type: string
11     constraints:
12     - allowed_pattern: ^((?!balance.tcp).)*$
13       description: The balance-tcp bond mode is known to cause packet loss and
14         should not be used in BondInterfaceOvsOptions.
15   ControlPlaneIp:
16     default: ''
17     description: IP address/subnet on the ctlplane network
18     type: string
19   ExternalIpSubnet:
20     default: ''
21     description: IP address/subnet on the external network
22     type: string
23   InternalApiIpSubnet:
24     default: ''
25     description: IP address/subnet on the internal_api network
26     type: string
27   StorageIpSubnet:
28     default: ''
29     description: IP address/subnet on the storage network
30     type: string
31   StorageMgmtIpSubnet:
32     default: ''
33     description: IP address/subnet on the storage_mgmt network
34     type: string
35   TenantIpSubnet:
36     default: ''
37     description: IP address/subnet on the tenant network
38     type: string
39   ManagementIpSubnet:
40     default: ''
41     description: IP address/subnet on the management network
42     type: string
43 resources:
44   OsNetConfigImpl:
45     type: OS::Heat::SoftwareConfig
46     properties:
47       group: script
48       config:
49         str_replace:
50           template:
51             get_file: network/scripts/run-os-net-config.sh
52           params:
53             $network_config:
54               network_config:
55               - type: ovs_bridge
56                 name: bridge_name
57                 use_dhcp: true
58                 members:
59                 - type: ovs_bond
60                   name: bond1
61                   use_dhcp: true
62                   ovs_options:
63                     get_param: BondInterfaceOvsOptions
64                   members:
65                   - type: interface
66                     name: nic1
67                   - type: interface
68                     name: nic2
69 outputs:
70   OS::stack_id:
71     description: The OsNetConfigImpl resource.
72     value:
73       get_resource: OsNetConfigImpl
74