adding ping "from interface" to utils library
Change-Id: I1ff3e030f4f9e6a4b5dbeb7a74e10d1574b92543
diff --git a/src/test/cord-api/Framework/utils/utils.robot b/src/test/cord-api/Framework/utils/utils.robot
index 76cca11..31cd7c9 100644
--- a/src/test/cord-api/Framework/utils/utils.robot
+++ b/src/test/cord-api/Framework/utils/utils.robot
@@ -120,11 +120,11 @@
\ Run Keyword If '${value[0]}' == '${val}' Exit For Loop
Test Ping
- [Arguments] ${status} ${src} ${user} ${pass} ${dest} ${prompt}=$ ${prompt_timeout}=60s
+ [Arguments] ${status} ${src} ${user} ${pass} ${dest} ${interface} ${prompt}=$ ${prompt_timeout}=60s
[Documentation] SSH's into src and attempts to ping dest. Status determines if ping should pass | fail
${conn_id}= SSHLibrary.Open Connection ${src} prompt=${prompt} timeout=${prompt_timeout}
SSHLibrary.Login ${user} ${pass}
- ${result}= SSHLibrary.Execute Command ping -c 5 ${dest}
+ ${result}= SSHLibrary.Execute Command ping -I ${interface} -c 5 ${dest}
SSHLibrary.Close Connection
Log ${result}
Run Keyword If '${status}' == 'PASS' Should Contain ${result} 64 bytes
diff --git a/src/test/cord-api/Tests/WorkflowValidations/ATT_Test001.txt b/src/test/cord-api/Tests/WorkflowValidations/ATT_Test001.txt
index 34223c6..ead74bf 100644
--- a/src/test/cord-api/Tests/WorkflowValidations/ATT_Test001.txt
+++ b/src/test/cord-api/Tests/WorkflowValidations/ATT_Test001.txt
@@ -86,7 +86,7 @@
Test E2E Connectivity
[Documentation] Test pings after subscriber has been authenticated + enabled
- Wait Until Keyword Succeeds 60s 5s Test Ping PASS ${src_ip} ${src_user} ${src_pass} ${dst_dp_ip}
+ Wait Until Keyword Succeeds 60s 5s Test Ping PASS ${src_ip} ${src_user} ${src_pass} ${dst_dp_ip} ${src_iface}
*** Keywords ***
Read InputFile