Skip to content

Commit a806ce4

Browse files
committed
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
1 parent 1d70b9e commit a806ce4

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

tools/devcloud/quickcloud.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"securitygroupenabled": "true",
5555
"localstorageenabled": "true",
5656
"networktype": "Basic",
57+
"networkofferingname": "QuickCloudNoServices",
5758
"pods": [
5859
{
5960
"endip": "192.168.56.220",

tools/marvin/marvin/deployDataCenter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,11 @@ def createZones(self, zones):
299299

300300
if zone.networktype == "Basic":
301301
listnetworkoffering = listNetworkOfferings.listNetworkOfferingsCmd()
302-
303302
listnetworkoffering.name = "DefaultSharedNetscalerEIPandELBNetworkOffering" \
304303
if len(filter(lambda x : x.typ == 'Public', zone.physical_networks[0].traffictypes)) > 0 \
305304
else "DefaultSharedNetworkOfferingWithSGService"
305+
if zone.networkofferingname is not None:
306+
listnetworkoffering.name = zone.networkofferingname
306307

307308
listnetworkofferingresponse = \
308309
self.apiClient.listNetworkOfferings(listnetworkoffering)

0 commit comments

Comments
 (0)