This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "Create OVNMacAddrNet network on Undercloud" into stable/ussuri
- Loading branch information
Showing
10 changed files
with
93 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
heat_template_version: rocky | ||
|
||
description: Network used to allocate MAC addresses for OVN chassis. | ||
|
||
parameters: | ||
OVNMacAddressNetworkName: | ||
default: ovn_mac_addr_net | ||
description: The name of the OVNMacAddr network. | ||
type: string | ||
ManageNetworks: | ||
default: true | ||
type: boolean | ||
description: > | ||
Manage the network and related resources (subnets and segments) with | ||
either create, update, or delete operations (depending on the stack | ||
operation). Does not apply to ports which will always be managed as | ||
needed. Defaults to true. For multi-stack use cases where the network | ||
related resources have already been managed by a separate stack, this | ||
parameter can be set to false. | ||
conditions: | ||
manage_networks: {get_param: ManageNetworks} | ||
|
||
resources: | ||
OVNMacAddressNetwork: | ||
type: OS::Neutron::Net | ||
condition: manage_networks | ||
properties: | ||
name: {get_param: OVNMacAddressNetworkName} | ||
value_specs: | ||
description: Network used to allocate MAC addresses for OVN chassis. | ||
|
||
outputs: | ||
OS::stack_id: | ||
description: > | ||
Network used to allocate MAC addresses for OVN chassis. | ||
value: {get_resource: OVNMacAddressNetwork} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
heat_template_version: rocky | ||
|
||
description: > | ||
Port without IP address, used to allocate MAC addresses for OVN chassis. | ||
parameters: | ||
PortName: | ||
description: Name of the port | ||
default: '' | ||
type: string | ||
OVNMacAddressNetworkName: | ||
default: ovn_mac_addr_net | ||
description: The name of the OVNMacAddr network. | ||
type: string | ||
|
||
resources: | ||
OVNMacAddressPort: | ||
type: OS::Neutron::Port | ||
properties: | ||
name: {get_param: PortName} | ||
network: {get_param: OVNMacAddressNetworkName} | ||
fixed_ips: [] | ||
|
||
outputs: | ||
mac_address: | ||
description: MAC address of the port | ||
value: {get_attr: [OVNMacAddressPort, mac_address]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters