diff options
author | Brady Johnson <brady.allen.johnson@ericsson.com> | 2016-08-30 17:50:10 +0200 |
---|---|---|
committer | Jose Lausuch <jose.lausuch@ericsson.com> | 2016-08-31 08:46:13 +0000 |
commit | 6468f2a6f1329eedc9810d8d4ff9a8a7c8001dc9 (patch) | |
tree | 58f5cd31933b196da0d80a39b64907fbfcd3e4bd /testcases | |
parent | 3c44c8309e11548203fd90d715bf7009115f583e (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>
(cherry picked from commit 429ea989e665ebc3dac381c2629662f327dd9a46)
Diffstat (limited to 'testcases')
-rwxr-xr-x | testcases/features/sfc/sfc.py | 5 |
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 |