mirror of https://github.com/apache/cloudstack.git
QuickCloud: allow specification of network offering name in datacenter config. The deployDatacenter python script will use this to pick the network offering during creation of the default network in a basic zone
This commit is contained in:
parent
1d70b9ea77
commit
a806ce43d3
|
|
@ -54,6 +54,7 @@
|
|||
"securitygroupenabled": "true",
|
||||
"localstorageenabled": "true",
|
||||
"networktype": "Basic",
|
||||
"networkofferingname": "QuickCloudNoServices",
|
||||
"pods": [
|
||||
{
|
||||
"endip": "192.168.56.220",
|
||||
|
|
|
|||
|
|
@ -299,10 +299,11 @@ class deployDataCenters():
|
|||
|
||||
if zone.networktype == "Basic":
|
||||
listnetworkoffering = listNetworkOfferings.listNetworkOfferingsCmd()
|
||||
|
||||
listnetworkoffering.name = "DefaultSharedNetscalerEIPandELBNetworkOffering" \
|
||||
if len(filter(lambda x : x.typ == 'Public', zone.physical_networks[0].traffictypes)) > 0 \
|
||||
else "DefaultSharedNetworkOfferingWithSGService"
|
||||
if zone.networkofferingname is not None:
|
||||
listnetworkoffering.name = zone.networkofferingname
|
||||
|
||||
listnetworkofferingresponse = \
|
||||
self.apiClient.listNetworkOfferings(listnetworkoffering)
|
||||
|
|
|
|||
Loading…
Reference in New Issue