Fix problem with SFC test
authorBrady Johnson <brady.allen.johnson@ericsson.com>
Tue, 30 Aug 2016 15:50:10 +0000 (17:50 +0200)
committerBrady Johnson <brady.allen.johnson@ericsson.com>
Wed, 31 Aug 2016 08:43:04 +0000 (10:43 +0200)
- 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 <brady.allen.johnson@ericsson.com>
testcases/features/sfc/sfc.py

index f8af510..3cf1052 100755 (executable)
@@ -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