summaryrefslogtreecommitdiffstats
path: root/testcases/features/sfc
diff options
context:
space:
mode:
authorBrady Johnson <brady.allen.johnson@ericsson.com>2016-08-30 17:50:10 +0200
committerBrady Johnson <brady.allen.johnson@ericsson.com>2016-08-31 10:43:04 +0200
commit429ea989e665ebc3dac381c2629662f327dd9a46 (patch)
tree9f9df0581dd2d9107586e716e9b63b86b03ddae0 /testcases/features/sfc
parentbb88bedfd4410ca6057fe9a2512537b25ba7c326 (diff)
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 <brady.allen.johnson@ericsson.com>
Diffstat (limited to 'testcases/features/sfc')
-rwxr-xr-xtestcases/features/sfc/sfc.py5
1 files changed, 5 insertions, 0 deletions
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