Compute: drive NW configuration via software conf
[apex-tripleo-heat-templates.git] / net-config-bridge.yaml
1 heat_template_version: 2014-10-16
2
3 description: >
4   Software Config to drive os-net-config for a simple bridge.
5
6 resources:
7   OsNetConfigImpl:
8     type: OS::Heat::StructuredConfig
9     properties:
10       group: os-apply-config
11       config:
12         os_net_config:
13           network_config:
14             -
15               type: ovs_bridge
16               name: {get_input: bridge_name}
17               use_dhcp: true
18               # Can't do this yet: https://bugs.launchpad.net/heat/+bug/1344284
19               #ovs_extra:
20               #  - list_join:
21               #    - ' '
22               #    - - br-set-external-id
23               #      - {get_input: bridge_name}
24               #      - bridge-id
25               #      - {get_input: bridge_name}
26               members:
27                 -
28                   type: interface
29                   name: {get_input: interface_name}
30                   # force the MAC address of the bridge to this interface
31                   primary: true
32
33 outputs:
34   config_id:
35     description: The ID of the OsNetConfigImpl resource.
36     value:
37       {get_resource: OsNetConfigImpl}