Added network security testcases

    -Send Continuous ICMP Echo Request To BMC And Verify No Packet Loss

Change-Id: I613f22418c7fcc954a3d5dfc87e22cbcd498ef7c
Signed-off-by: shrsuman123 <shrsuman@in.ibm.com>
diff --git a/security/test_bmc_network_security.robot b/security/test_bmc_network_security.robot
index 5b9d08d..2b0db39 100644
--- a/security/test_bmc_network_security.robot
+++ b/security/test_bmc_network_security.robot
@@ -1,6 +1,9 @@
 *** Settings ***
 Documentation  Network stack stress tests using "nping" tool.
 
+# This Suite has few testcases which uses nping with ICMP.
+# ICMP creates a raw socket, which requires root privilege/sudo to run tests.
+
 Resource                ../lib/resource.robot
 Resource                ../lib/bmc_redfish_resource.robot
 Resource                ../lib/ipmi_client.robot
@@ -44,6 +47,16 @@
     Should Be Equal As Numbers  ${packet_loss}  100.00
     ...  msg=FAILURE: BMC is not dropping netmask request messages.
 
+Send Continuous ICMP Echo Request To BMC And Verify No Packet Loss
+    [Documentation]  Send ICMP packet type 8 continuously and check no packets are dropped from BMC
+    [Tags]  Send_Continuous_ICMP_Echo_Request_To_BMC_And_Verify_No_Packet_Loss
+
+    # Send ICMP packet type 8 to BMC and check packet loss.
+    ${packet_loss}=  Send Network Packets And Get Packet Loss
+    ...  ${OPENBMC_HOST}  ${iterations}  ${ICMP_PACKETS}
+    Should Be Equal As Numbers  ${packet_loss}  0.0
+    ...  msg=FAILURE: BMC is dropping packets.
+
 Send Network Packets Continuously To Redfish Interface
     [Documentation]  Send network packets continuously to Redfish interface and verify stability.
     [Tags]  Send_Network_Packets_Continuously_To_Redfish_Interface