X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=net-config-bridge.yaml;h=10d53880bb44f53156c7a2cc0a0bda17b707b63e;hb=1a4ece16cea40075fe7332ed048b9c289b3ff424;hp=c3416e0278ee361702652be0da241519d0d439f2;hpb=eaa5eb6a5985c52b484d58e22075b84caf2f2493;p=apex-tripleo-heat-templates.git diff --git a/net-config-bridge.yaml b/net-config-bridge.yaml index c3416e02..10d53880 100644 --- a/net-config-bridge.yaml +++ b/net-config-bridge.yaml @@ -1,9 +1,11 @@ -heat_template_version: 2015-04-30 - +heat_template_version: ocata description: > Software Config to drive os-net-config for a simple bridge. - parameters: + ControlPlaneIp: + default: '' + description: IP address/subnet on the ctlplane network + type: string ExternalIpSubnet: default: '' description: IP address/subnet on the external network @@ -24,35 +26,33 @@ parameters: default: '' description: IP address/subnet on the tenant network type: string - + ManagementIpSubnet: + default: '' + description: IP address/subnet on the management network + type: string resources: OsNetConfigImpl: - type: OS::Heat::StructuredConfig + type: OS::Heat::SoftwareConfig properties: - group: os-apply-config + group: script config: - os_net_config: - network_config: - - - type: ovs_bridge - name: {get_input: bridge_name} - use_dhcp: true - # Can't do this yet: https://bugs.launchpad.net/heat/+bug/1344284 - #ovs_extra: - # - list_join: - # - ' ' - # - - br-set-external-id - # - {get_input: bridge_name} - # - bridge-id - # - {get_input: bridge_name} - members: - - - type: interface - name: {get_input: interface_name} + str_replace: + template: + get_file: network/scripts/run-os-net-config.sh + params: + $network_config: + network_config: + - type: ovs_bridge + name: bridge_name + use_dhcp: true + members: + - type: interface + name: interface_name # force the MAC address of the bridge to this interface primary: true - outputs: OS::stack_id: description: The OsNetConfigImpl resource. - value: {get_resource: OsNetConfigImpl} + value: + get_resource: OsNetConfigImpl +