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 614131a9de
commit aa8fee4fac
2 changed files with 21 additions and 0 deletions

View File

@ -46,6 +46,16 @@ def describeResources(config):
z.name = 'Sandbox-%s'%(config.get('cloudstack', 'hypervisor')) z.name = 'Sandbox-%s'%(config.get('cloudstack', 'hypervisor'))
z.networktype = 'Advanced' z.networktype = 'Advanced'
z.guestcidraddress = '10.1.1.0/24' 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 = pod()
p.name = 'POD0' p.name = 'POD0'

View File

@ -47,6 +47,17 @@ def describeResources(config):
z.name = 'Sandbox-%s'%(config.get('cloudstack', 'hypervisor')) z.name = 'Sandbox-%s'%(config.get('cloudstack', 'hypervisor'))
z.networktype = 'Basic' z.networktype = 'Basic'
z.securitygroupenabled = 'true' 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 = pod()
p.name = 'POD0' p.name = 'POD0'