From: Brady Johnson Date: Tue, 30 Aug 2016 15:50:10 +0000 (+0200) Subject: Fix problem with SFC test X-Git-Tag: danube.1.RC1~460 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=429ea989e665ebc3dac381c2629662f327dd9a46;p=functest.git Fix problem with SFC test - If its not possible to get the IPs, then exit - Patch Set 2: addressed code review comments Change-Id: I16e22513b32e2b0da311ebcc280f3611570634a3 Signed-off-by: Brady Johnson --- diff --git a/testcases/features/sfc/sfc.py b/testcases/features/sfc/sfc.py index f8af51060..3cf1052b6 100755 --- a/testcases/features/sfc/sfc.py +++ b/testcases/features/sfc/sfc.py @@ -238,6 +238,11 @@ def main(): except: logger.debug("Problems assigning floating IP to SFs") + # If no IPs were obtained, then we cant continue + if not ips: + logger.error('Failed to obtain IPs, cant continue, exiting') + return + logger.debug("Floating IPs for SFs: %s..." % ips) # SSH TO START THE VXLAN_TOOL ON SF1