Correcting the example configurations for advanced and basic zone

Zones will now be have to configured with physical networks, their
traffic types and the providers with the devices supporting the service
This commit is contained in:
Prasanna Santhanam 2012-08-09 14:16:51 +05:30
parent 81208a5135
commit 98afec075c
2 changed files with 21 additions and 0 deletions

View File

@ -31,6 +31,16 @@ def describeResources(config):
z.name = 'Sandbox-%s'%(config.get('cloudstack', 'hypervisor'))
z.networktype = 'Advanced'
z.guestcidraddress = '10.1.1.0/24'
vpcprovider = provider()
vpcprovider.name = 'VpcVirtualRouter'
pn = physical_network()
pn.name = "Sandbox-pnet"
pn.traffictypes = [traffictype("Guest"), traffictype("Management"), traffictype("Public")]
pn.providers.append(vpcprovider)
z.physical_networks.append(pn)
p = pod()
p.name = 'POD0'

View File

@ -31,6 +31,17 @@ def describeResources(config):
z.name = 'Sandbox-%s'%(config.get('cloudstack', 'hypervisor'))
z.networktype = 'Basic'
z.securitygroupenabled = 'true'
sgprovider = provider()
sgprovider.broadcastdomainrange = 'Pod'
sgprovider.name = 'SecurityGroupProvider'
pn = physical_network()
pn.name = "Sandbox-pnet"
pn.traffictypes = [traffictype("Guest"), traffictype("Management")]
pn.providers.append(sgprovider)
z.physical_networks.append(pn)
p = pod()
p.name = 'POD0'