From 1af59094b6dbda2ef7838edbc88710d595eb5c4b Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Wed, 22 Aug 2012 16:12:20 +0530 Subject: [PATCH] There can be only one physical network in basic zone reviewed-by: simulator run --- tools/marvin/marvin/deployDataCenter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/marvin/marvin/deployDataCenter.py b/tools/marvin/marvin/deployDataCenter.py index 4d1fffcbbcc..a7b873b11db 100644 --- a/tools/marvin/marvin/deployDataCenter.py +++ b/tools/marvin/marvin/deployDataCenter.py @@ -284,7 +284,7 @@ class deployDataCenters(): listnetworkoffering = listNetworkOfferings.listNetworkOfferingsCmd() 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" listnetworkofferingresponse = \ @@ -313,7 +313,7 @@ class deployDataCenters(): return 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 False