mirror of https://github.com/apache/cloudstack.git
There can be only one physical network in basic zone
reviewed-by: simulator run
This commit is contained in:
parent
deb3648c26
commit
1af59094b6
|
|
@ -284,7 +284,7 @@ class deployDataCenters():
|
||||||
listnetworkoffering = listNetworkOfferings.listNetworkOfferingsCmd()
|
listnetworkoffering = listNetworkOfferings.listNetworkOfferingsCmd()
|
||||||
|
|
||||||
listnetworkoffering.name = "DefaultSharedNetscalerEIPandELBNetworkOffering" \
|
listnetworkoffering.name = "DefaultSharedNetscalerEIPandELBNetworkOffering" \
|
||||||
if len(filter(lambda x : x.typ == 'Public', zone.physical_networks.traffictypes)) > 0 \
|
if len(filter(lambda x : x.typ == 'Public', zone.physical_networks[0].traffictypes)) > 0 \
|
||||||
else "DefaultSharedNetworkOfferingWithSGService"
|
else "DefaultSharedNetworkOfferingWithSGService"
|
||||||
|
|
||||||
listnetworkofferingresponse = \
|
listnetworkofferingresponse = \
|
||||||
|
|
@ -313,7 +313,7 @@ class deployDataCenters():
|
||||||
return
|
return
|
||||||
|
|
||||||
def isEipElbZone(self, zone):
|
def isEipElbZone(self, zone):
|
||||||
if zone.networktype == "Basic" and len(filter(lambda x : x.typ == 'Public', zone.physical_networks.traffictypes)) > 0:
|
if zone.networktype == "Basic" and len(filter(lambda x : x.typ == 'Public', zone.physical_networks[0].traffictypes)) > 0:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue