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:
Chiradeep Vittal 2013-03-26 14:11:36 -07:00
parent 1d70b9ea77
commit a806ce43d3
2 changed files with 3 additions and 1 deletions

View File

@ -54,6 +54,7 @@
"securitygroupenabled": "true",
"localstorageenabled": "true",
"networktype": "Basic",
"networkofferingname": "QuickCloudNoServices",
"pods": [
{
"endip": "192.168.56.220",

View File

@ -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)