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
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/7fb8b041 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/7fb8b041 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/7fb8b041 Branch: refs/heads/internallb Commit: 7fb8b0412f6b2a0378d4eeafdf4e543c00d685d3 Parents: cddb729 Author: Chiradeep Vittal <[email protected]> Authored: Tue Mar 26 14:11:36 2013 -0700 Committer: Alena Prokharchyk <[email protected]> Committed: Wed Apr 10 15:43:35 2013 -0700 ---------------------------------------------------------------------- tools/devcloud/quickcloud.cfg | 1 + tools/marvin/marvin/deployDataCenter.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7fb8b041/tools/devcloud/quickcloud.cfg ---------------------------------------------------------------------- diff --git a/tools/devcloud/quickcloud.cfg b/tools/devcloud/quickcloud.cfg index 0e1fb4f..a2613d2 100644 --- a/tools/devcloud/quickcloud.cfg +++ b/tools/devcloud/quickcloud.cfg @@ -54,6 +54,7 @@ "securitygroupenabled": "true", "localstorageenabled": "true", "networktype": "Basic", + "networkofferingname": "QuickCloudNoServices", "pods": [ { "endip": "192.168.56.220", http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7fb8b041/tools/marvin/marvin/deployDataCenter.py ---------------------------------------------------------------------- diff --git a/tools/marvin/marvin/deployDataCenter.py b/tools/marvin/marvin/deployDataCenter.py index 42bc5f9..d365395 100644 --- a/tools/marvin/marvin/deployDataCenter.py +++ b/tools/marvin/marvin/deployDataCenter.py @@ -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)
