Add Security rules to allow UDP/ICMP 76/47376/1
authorgvrangan <venkatrangang@hcl.com>
Sat, 22 Oct 2016 00:28:12 +0000 (00:28 +0000)
committergvrangan <venkatrangang@hcl.com>
Sat, 22 Oct 2016 00:30:14 +0000 (00:30 +0000)
- Also modify the security group Keywords to use the new
keywords added to library.

- The rule for TCP was already present, but now replaced with the
new library KW

Change-Id: Ic1b8af82ef0d42c5b0fe6edc2cff43a4e1007ac6
Signed-off-by: gvrangan <venkatrangang@hcl.com>
csit/suites/openstack/connectivity/01_l2_tests.robot

index f50f896a2d476c309c98d3ebe59e7d707fd2f25e..ccecc86793414d56bc53b097278d90b22678e62d 100644 (file)
@@ -42,10 +42,14 @@ Create Subnets For l2_network_2
     Create SubNet    l2_network_2    l2_subnet_2    @{SUBNETS_RANGE}[1]
 
 Add Ssh Allow Rule
-    [Documentation]    Allow all TCP packets for testing
-    Create Security Group    csit    "CSIT SSH Allow"
-    Create Security Rule    ingress    tcp    1    65535    0.0.0.0/0    csit
-    Create Security Rule    egress    tcp    1    65535    0.0.0.0/0    csit
+    [Documentation]    Allow all TCP/UDP/ICMP packets for this suite
+    Neutron Security Group Create    csit
+    Neutron Security Group Rule Create    csit    direction=ingress    port_range_max=65535    port_range_min=1    protocol=tcp    remote_ip_prefix=0.0.0.0/0
+    Neutron Security Group Rule Create    csit    direction=egress    port_range_max=65535    port_range_min=1    protocol=tcp    remote_ip_prefix=0.0.0.0/0
+    Neutron Security Group Rule Create    csit    direction=ingress    protocol=icmp    remote_ip_prefix=0.0.0.0/0
+    Neutron Security Group Rule Create    csit    direction=egress    protocol=icmp    remote_ip_prefix=0.0.0.0/0
+    Neutron Security Group Rule Create    csit    direction=ingress    port_range_max=65535    port_range_min=1    protocol=udp    remote_ip_prefix=0.0.0.0/0
+    Neutron Security Group Rule Create    csit    direction=egress    port_range_max=65535    port_range_min=1    protocol=udp    remote_ip_prefix=0.0.0.0/0
 
 Create Vm Instances For l2_network_1
     [Documentation]    Create Four Vm instances using flavor and image names for a network.