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