diff options
author | 2016-09-21 18:58:21 +0300 | |
---|---|---|
committer | 2016-09-22 10:10:54 +0300 | |
commit | 4b07146f7d667c04159d57d681102995f6060f86 (patch) | |
tree | 6c6fa52e850c8ec5c687ab2fe1bd91f1a7e30e20 /testcases/features/sfc/sfc.py | |
parent | 0283d05bf057469689115c59338dbfb53b7a10fa (diff) |
Open secgroups and add check_ssh in sfc_colorado1
- Open port 22 in every security group
- Add check_ssh for sfc_colorado1
- Replace exits with continue statements
in sfc_colorado1 test loop
Change-Id: Ic7a7ba67c729667621cc0d1114ee2a42d8846247
Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
Diffstat (limited to 'testcases/features/sfc/sfc.py')
-rwxr-xr-x | testcases/features/sfc/sfc.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/testcases/features/sfc/sfc.py b/testcases/features/sfc/sfc.py index 3f46026ad..ec1720003 100755 --- a/testcases/features/sfc/sfc.py +++ b/testcases/features/sfc/sfc.py @@ -149,6 +149,18 @@ def main(): sg_id = os_utils.create_security_group_full(neutron_client, SECGROUP_NAME, SECGROUP_DESCR) + secgroups = os_utils.get_security_groups(neutron_client) + + for sg in secgroups: + os_utils.create_secgroup_rule(neutron_client, sg['id'], + 'ingress', 'tcp', + port_range_min=22, + port_range_max=22) + os_utils.create_secgroup_rule(neutron_client, sg['id'], + 'egress', 'tcp', + port_range_min=22, + port_range_max=22) + # boot INSTANCE logger.info("Creating instance '%s'..." % INSTANCE_NAME) logger.debug( @@ -289,12 +301,12 @@ def main(): time.sleep(3) r += 1 - logger.info("SSH connectivity to the SFs established") - if not all(check): logger.error("Cannot establish SSH connection to the SFs") sys.exit(1) + logger.info("SSH connectivity to the SFs established") + # SSH TO START THE VXLAN_TOOL ON SF1 logger.info("Configuring the SFs") try: |