Make private network optional
If a fixed_network and fixed_subnet is specified no private network is created by the templates and the specified network is used instead for VMs provisioning, like in the Ironic driver. Currently missing is the code to handle the use case where you specify a fixed_network but not a fixed_subnet, this will come in a following patch. Partially Implements: blueprint decouple-private-network Change-Id: I2003eb709b22b905063d846eb71570fc5e033618changes/54/380354/34
parent
a60529cb11
commit
22fb89a6e1
@ -0,0 +1,8 @@
|
||||
resource_registry:
|
||||
"Magnum::NetworkSwitcher": ../fragments/network_switcher_existing.yaml
|
||||
|
||||
# Cluster template
|
||||
"Magnum::Optional::Neutron::Subnet": "OS::Heat::None"
|
||||
"Magnum::Optional::Neutron::Net": "OS::Heat::None"
|
||||
"Magnum::Optional::Neutron::Router": "OS::Heat::None"
|
||||
"Magnum::Optional::Neutron::RouterInterface": "OS::Heat::None"
|
@ -0,0 +1,8 @@
|
||||
resource_registry:
|
||||
"Magnum::NetworkSwitcher": ../fragments/network_switcher_private.yaml
|
||||
|
||||
# Cluster template
|
||||
"Magnum::Optional::Neutron::Subnet": "OS::Neutron::Subnet"
|
||||
"Magnum::Optional::Neutron::Net": "OS::Neutron::Net"
|
||||
"Magnum::Optional::Neutron::Router": "OS::Neutron::Router"
|
||||
"Magnum::Optional::Neutron::RouterInterface": "OS::Neutron::RouterInterface"
|
@ -0,0 +1,27 @@
|
||||
heat_template_version: 2014-10-16
|
||||
|
||||
parameters:
|
||||
|
||||
private_network:
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
existing_network:
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
private_subnet:
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
existing_subnet:
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
outputs:
|
||||
|
||||
network:
|
||||
value: {get_param: existing_network}
|
||||
|
||||
subnet:
|
||||
value: {get_param: existing_subnet}
|
@ -0,0 +1,27 @@
|
||||
heat_template_version: 2014-10-16
|
||||
|
||||
parameters:
|
||||
|
||||
private_network:
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
existing_network:
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
private_subnet:
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
existing_subnet:
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
outputs:
|
||||
|
||||
network:
|
||||
value: {get_param: private_network}
|
||||
|
||||
subnet:
|
||||
value: {get_param: private_subnet}
|
Loading…
Reference in New Issue