You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.4 KiB
52 lines
1.4 KiB
heat_template_version: wallaby |
|
|
|
description: > |
|
Port without IP address, used to allocate MAC addresses for OVN chassis. |
|
|
|
parameters: |
|
RootStackName: |
|
description: The name of the stack/plan. |
|
type: string |
|
PortName: |
|
description: Name of the port |
|
default: '' |
|
type: string |
|
OVNMacAddressNetworkName: |
|
default: ovn_mac_addr_net |
|
description: The name of the OVNMacAddr network. |
|
type: string |
|
PortDeletionPolicy: |
|
description: > |
|
Whether to retain or delete the neutron port resource on deletion of the |
|
stack |
|
type: string |
|
default: delete |
|
constraints: |
|
- allowed_values: [delete, retain] |
|
|
|
resources: |
|
OVNMacAddressPort: |
|
type: OS::Neutron::Port |
|
deletion_policy: {get_param: PortDeletionPolicy} |
|
properties: |
|
name: {get_param: PortName} |
|
network: {get_param: OVNMacAddressNetworkName} |
|
fixed_ips: [] |
|
tags: |
|
- str_replace: |
|
template: tripleo_ovn_mac_port_name=$PORT_NAME |
|
params: |
|
$PORT_NAME: {get_param: PortName} |
|
- str_replace: |
|
template: tripleo_ovn_mac_net=$NET_NAME |
|
params: |
|
$NET_NAME: {get_param: OVNMacAddressNetworkName} |
|
- str_replace: |
|
template: tripleo_stack_name=$STACK_NAME |
|
params: |
|
$STACK_NAME: {get_param: RootStackName} |
|
|
|
outputs: |
|
mac_address: |
|
description: MAC address of the port |
|
value: {get_attr: [OVNMacAddressPort, mac_address]}
|
|
|