Add csit tests for hairpinning. 62/54562/4
authoryair <yair.zinger@hpe.com>
Sun, 9 Apr 2017 07:57:23 +0000 (10:57 +0300)
committerJamo Luhrsen <jluhrsen@redhat.com>
Mon, 10 Apr 2017 21:06:46 +0000 (21:06 +0000)
Test that pings from VM1 with floating IP to VM2 floating IP.
The test make sure there are no router hops in the way (ttl=1).

Change-Id: I8254c4ebd3fdd1ceb052b667896f3622c3f3e235
Signed-off-by: yair <yair.zinger@hpe.com>
csit/suites/openstack/connectivity/03_external_network_tests.robot

index 2c4e36575d929a7c4d4e01c3967135be9ab4010a..49de4b11d4d5a5780d8d21118b9380dc998a95bc 100644 (file)
@@ -119,6 +119,12 @@ Ping Vm Instance2 Floating IP From Control Node
     [Documentation]    Check reachability of VM instance through floating IP by pinging them.
     OpenStackOperations.Ping Vm From Control Node    @{VM_FLOATING_IPS}[1]    additional_args=-I ${external_internet_addr}
 
+Ping Vm Instance2 Floating IP From Vm Instance1 With Floating IP (Hairpinning)
+    [Documentation]    Check reachability of VM instance floating IP from another VM instance with FIP (with ttl=1 to make sure no router hops)
+    Pass Execution If    "${ODL_STREAM}" == "boron"    Hairpinning support is not available in boron or earlier
+    ${dst_ip}=    Create List    @{VM_FLOATING_IPS}[1]
+    OpenStackOperations.Test Operations From Vm Instance    @{NETWORKS_NAME}[0]    @{FLOATING_VM_IPS}[0]    ${dst_ip}    ttl=1
+
 Ping External Network PNF from Vm Instance 1
     [Documentation]    Check reachability of External Network PNF from VM instance (with ttl=1 to make sure no router hops)
     Pass Execution If    "${ODL_STREAM}" == "boron"    PNF subnet route support is not available in boron or earlier