Changes for configuring Nuage
[apex-tripleo-heat-templates.git] / net-config-bond.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   Software Config to drive os-net-config with 2 bonded nics on a bridge.
5
6 parameters:
7   ControlPlaneIp:
8     default: ''
9     description: IP address/subnet on the ctlplane network
10     type: string
11   ExternalIpSubnet:
12     default: ''
13     description: IP address/subnet on the external network
14     type: string
15   InternalApiIpSubnet:
16     default: ''
17     description: IP address/subnet on the internal API network
18     type: string
19   StorageIpSubnet:
20     default: ''
21     description: IP address/subnet on the storage network
22     type: string
23   StorageMgmtIpSubnet:
24     default: ''
25     description: IP address/subnet on the storage mgmt network
26     type: string
27   TenantIpSubnet:
28     default: ''
29     description: IP address/subnet on the tenant network
30     type: string
31
32 resources:
33   OsNetConfigImpl:
34     type: OS::Heat::StructuredConfig
35     properties:
36       group: os-apply-config
37       config:
38         os_net_config:
39           network_config:
40             -
41               type: ovs_bridge
42               name: {get_input: bridge_name}
43               use_dhcp: true
44               # Can't do this yet: https://bugs.launchpad.net/heat/+bug/1344284
45               #ovs_extra:
46               #  - list_join:
47               #    - ' '
48               #    - - br-set-external-id
49               #      - {get_input: bridge_name}
50               #      - bridge-id
51               #      - {get_input: bridge_name}
52               members:
53                 -
54                   type: ovs_bond
55                   name: bond1
56                   use_dhcp: true
57                   members:
58                     # os-net-config translates nic1 => em1 (for example)
59                     -
60                       type: interface
61                       name: nic1
62                     -
63                       type: interface
64                       name: nic2
65
66 outputs:
67   OS::stack_id:
68     description: The OsNetConfigImpl resource.
69     value: {get_resource: OsNetConfigImpl}