Fix security group rule conflict 13/32913/1
authortomsou <soth@intracom-telecom.com>
Tue, 28 Mar 2017 12:20:37 +0000 (12:20 +0000)
committerNikolas Hermanns <nikolas.hermanns@ericsson.com>
Mon, 3 Apr 2017 14:07:28 +0000 (14:07 +0000)
commit2648675ac9e71f3de44c3a0c26135cdeec5c97d1
tree9c2fb50d47ae8e262e5ee50493895ebaef770e1a
parent85eb1a22ae325283a1e23677af4d784e66be694d
Fix security group rule conflict

-open_icmp_ssh function, that creates security
 group rules for icmp and http (here the name of
 the function is misleading),  is splitted into 2
 new functions one for each rule (open_icmp() and
 open_http_port()).
 Test cases that used the old function have been
 updated

-In the original implementation of open_icmp_ssh()
 and open_bgp_port(), the direction parameter was
 missing. This was leading to an error message

-A check for the existence of security group rule
 has been added and used before the creation of each
 security group rule. If a rule already exists,
 an info message is printed and the testcase
 continues

This change is strongly dependent on https://gerrit.opnfv.org/gerrit/#/c/31925
of Functest repo. NOT TO BE MERGED before

JIRA: SDNVPN-103

Change-Id: Icb96954556f6d7294cf3454f045dbca4b9be672d
Signed-off-by: tomsou <soth@intracom-telecom.com>
(cherry picked from commit 0e26e7dfd4ff41ae7c8389218bca138346864922)
sdnvpn/lib/utils.py
sdnvpn/test/functest/testcase_3.py
sdnvpn/test/functest/testcase_7.py
sdnvpn/test/functest/testcase_8.py