Add icmp rules for clearwaterims case 05/44005/1
authorMichael Pauls <michael.pauls@fokus.fraunhofer.de>
Mon, 2 Oct 2017 17:36:42 +0000 (19:36 +0200)
committerMorgan Richomme <morgan.richomme@orange.com>
Tue, 3 Oct 2017 06:31:55 +0000 (06:31 +0000)
icmp rules must be enabled since a ping is used internally
to check that other components are up and reachable

Change-Id: I1ae3c301f30455c57193ddfe1757e971f5612c18
Signed-off-by: Michael Pauls <michael.pauls@fokus.fraunhofer.de>
(cherry picked from commit 4a27c90843abd3a8d002e37f0f9f22307f2ec9fc)

functest/opnfv_tests/vnf/ims/orchestra_clearwaterims.py

index 71b7a99..2cfc2a5 100644 (file)
@@ -271,6 +271,16 @@ class ClearwaterImsVnf(vnf.VnfOnBoarding):
                 protocol=Protocol.udp,
                 port_range_min=1,
                 port_range_max=65535))
+        sg_rules.append(
+            SecurityGroupRuleSettings(
+                sec_grp_name="orchestra-sec-group-allowall",
+                direction=Direction.ingress,
+                protocol=Protocol.icmp))
+        sg_rules.append(
+            SecurityGroupRuleSettings(
+                sec_grp_name="orchestra-sec-group-allowall",
+                direction=Direction.egress,
+                protocol=Protocol.icmp))
         security_group = OpenStackSecurityGroup(
             self.snaps_creds,
             SecurityGroupSettings(