Gunaseelan | ed0eb1b | 2017-08-08 08:12:12 -0500 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
Kailash Khalasi | b6e87fc | 2017-04-18 15:08:19 -0700 | [diff] [blame] | 15 | *** Settings *** |
| 16 | Documentation Library for various utilities |
| 17 | Library SSHLibrary |
| 18 | Library HttpLibrary.HTTP |
| 19 | Library String |
| 20 | Library DateTime |
| 21 | Library Process |
| 22 | Library Collections |
| 23 | Library RequestsLibrary |
Kailash Khalasi | b6e87fc | 2017-04-18 15:08:19 -0700 | [diff] [blame] | 24 | |
| 25 | *** Keywords *** |
You Wang | 88e1d85 | 2018-10-05 11:44:19 -0700 | [diff] [blame] | 26 | Login And Run Command On Remote System |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 27 | [Arguments] ${cmd} ${ip} ${user} ${pass}=${None} ${container_type}=${None} ${container_name}=${None} ${prompt}=~$ ${prompt_timeout}=15s ${container_prompt}=# |
| 28 | [Documentation] SSH's into a remote host (and logs into the container if container_type and container_name are specified), tries to switch to root user and executes a command and returns output |
| 29 | ${conn_id} Login To Remote System ${ip} ${user} ${pass} ${container_type} ${container_name} ${prompt} ${prompt_timeout} ${container_prompt} |
| 30 | ${output}= Run Command On Remote System ${cmd} ${conn_id} ${user} ${pass} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 31 | Log ${output} |
You Wang | 88e1d85 | 2018-10-05 11:44:19 -0700 | [diff] [blame] | 32 | Logout From Remote System ${conn_id} |
Kailash Khalasi | b6e87fc | 2017-04-18 15:08:19 -0700 | [diff] [blame] | 33 | [Return] ${output} |
| 34 | |
You Wang | 88e1d85 | 2018-10-05 11:44:19 -0700 | [diff] [blame] | 35 | Login To Remote System |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 36 | [Arguments] ${ip} ${user} ${pass}=${None} ${container_type}=${None} ${container_name}=${None} ${prompt}=~$ ${prompt_timeout}=15s ${container_prompt}=# |
| 37 | [Documentation] SSH's into a remote host (and logs into the container if container_type and container_name are specified) and returns connection ID |
Kailash Khalasi | c930eac | 2018-09-05 12:18:23 -0700 | [diff] [blame] | 38 | ${conn_id}= SSHLibrary.Open Connection ${ip} prompt=${prompt} timeout=${prompt_timeout} |
You Wang | 59ded6c | 2018-10-05 17:43:44 -0700 | [diff] [blame] | 39 | Run Keyword If '${pass}' != '${None}' SSHLibrary.Login ${user} ${pass} |
| 40 | ... ELSE SSHLibrary.Login With Public Key ${user} %{HOME}/.ssh/id_rsa |
You Wang | 88e1d85 | 2018-10-05 11:44:19 -0700 | [diff] [blame] | 41 | # Login to the lxc container |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 42 | Run Keyword If '${container_type}' == 'LXC' Run Keywords |
You Wang | 88e1d85 | 2018-10-05 11:44:19 -0700 | [diff] [blame] | 43 | ... SSHLibrary.Write lxc exec ${container_name} /bin/bash AND |
| 44 | ... SSHLibrary.Read Until ${container_prompt} AND |
| 45 | ... SSHLibrary.Set Client Configuration prompt=${container_prompt} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 46 | # Login to the k8s container |
| 47 | Run Keyword If '${container_type}' == 'K8S' Run Keywords |
| 48 | ... SSHLibrary.Write kubectl -n $(kubectl get pods --all-namespaces | grep ${container_name} | awk '{print $1}') exec ${container_name} -it /bin/bash AND |
| 49 | ... SSHLibrary.Read Until ${container_prompt} AND |
| 50 | ... SSHLibrary.Set Client Configuration prompt=${container_prompt} |
| 51 | # Try to switch to root user |
| 52 | ${conn}= SSHLibrary.Get Connection ${conn_id} |
| 53 | Run Keyword And Ignore Error SSHLibrary.Write sudo -s |
| 54 | ${output}= SSHLibrary.Read Until Regexp \#|${conn.prompt}|password for ${user}: |
| 55 | Run Keyword If 'password for ${user}:' not in '''${output}''' Return From Keyword ${conn_id} |
| 56 | SSHLibrary.Set Client Configuration prompt=\# |
| 57 | SSHLibrary.Write ${pass} |
| 58 | SSHLibrary.Read Until Prompt |
| 59 | [Return] ${conn_id} |
You Wang | 88e1d85 | 2018-10-05 11:44:19 -0700 | [diff] [blame] | 60 | |
| 61 | Logout From Remote System |
| 62 | [Arguments] ${conn_id} |
| 63 | [Documentation] Exit from the SSH session to a remote host |
| 64 | SSHLibrary.Switch Connection ${conn_id} |
Kailash Khalasi | c930eac | 2018-09-05 12:18:23 -0700 | [diff] [blame] | 65 | SSHLibrary.Close Connection |
You Wang | 88e1d85 | 2018-10-05 11:44:19 -0700 | [diff] [blame] | 66 | |
| 67 | Run Command On Remote System |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 68 | [Arguments] ${cmd} ${conn_id} ${user} ${pass}=${None} |
You Wang | 88e1d85 | 2018-10-05 11:44:19 -0700 | [diff] [blame] | 69 | [Documentation] Executes a command on remote host and returns output |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 70 | ${conn}= SSHLibrary.Get Connection ${conn_id} |
You Wang | 88e1d85 | 2018-10-05 11:44:19 -0700 | [diff] [blame] | 71 | SSHLibrary.Switch Connection ${conn_id} |
| 72 | SSHLibrary.Write ${cmd} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 73 | ${output}= SSHLibrary.Read Until Regexp ${conn.prompt}|password for ${user}: |
You Wang | 88e1d85 | 2018-10-05 11:44:19 -0700 | [diff] [blame] | 74 | Run Keyword If 'password for ${user}:' not in '''${output}''' Return From Keyword ${output} |
| 75 | SSHLibrary.Write ${pass} |
| 76 | ${output}= SSHlibrary.Read Until Prompt |
| 77 | [Return] ${output} |
Kailash Khalasi | c930eac | 2018-09-05 12:18:23 -0700 | [diff] [blame] | 78 | |
Kailash Khalasi | b6e87fc | 2017-04-18 15:08:19 -0700 | [diff] [blame] | 79 | Execute Command on CIAB Server in Specific VM |
Kailash Khalasi | 2adbad8 | 2017-05-15 14:53:40 -0700 | [diff] [blame] | 80 | [Arguments] ${system} ${vm} ${cmd} ${user}=${VM_USER} ${password}=${VM_PASS} ${prompt}=$ ${use_key}=True ${strip_line}=True |
Kailash Khalasi | b6e87fc | 2017-04-18 15:08:19 -0700 | [diff] [blame] | 81 | [Documentation] SSHs into ${HOST} where CIAB is running and executes a command in the Prod Vagrant VM where all the containers are running |
| 82 | ${conn_id}= SSHLibrary.Open Connection ${system} prompt=${prompt} timeout=300s |
| 83 | Run Keyword If '${use_key}' == 'False' SSHLibrary.Login ${user} ${pass} ELSE SSHLibrary.Login With Public Key ${user} %{HOME}/.ssh/${SSH_KEY} any |
| 84 | SSHLibrary.Write ssh ${vm} |
| 85 | SSHLibrary.Read Until Prompt |
| 86 | SSHLibrary.Write ${cmd} |
| 87 | ${output}= SSHLibrary.Read Until Prompt |
| 88 | SSHLibrary.Close Connection |
Kailash Khalasi | 2adbad8 | 2017-05-15 14:53:40 -0700 | [diff] [blame] | 89 | ${output_1}= Run Keyword If '${strip_line}' == 'True' Get Line ${output} 0 |
| 90 | ${output}= Set Variable If '${strip_line}' == 'True' ${output_1} ${output} |
Kailash Khalasi | b6e87fc | 2017-04-18 15:08:19 -0700 | [diff] [blame] | 91 | [Return] ${output} |
| 92 | |
| 93 | Execute Command on Compute Node in CIAB |
Kailash Khalasi | f6de259 | 2017-09-13 13:37:14 -0700 | [diff] [blame] | 94 | [Arguments] ${system} ${node} ${hostname} ${cmd} ${user}=${VM_USER} ${password}=${VM_PASS} ${prompt}=$ ${use_key}=True |
Kailash Khalasi | b6e87fc | 2017-04-18 15:08:19 -0700 | [diff] [blame] | 95 | [Documentation] SSHs into ${HOST} where CIAB is running and executes a command in the Prod Vagrant VM where all the containers are running |
| 96 | ${conn_id}= SSHLibrary.Open Connection ${system} prompt=${prompt} timeout=300s |
| 97 | Run Keyword If '${use_key}' == 'False' SSHLibrary.Login ${user} ${pass} ELSE SSHLibrary.Login With Public Key ${user} %{HOME}/.ssh/${SSH_KEY} any |
Kailash Khalasi | f6de259 | 2017-09-13 13:37:14 -0700 | [diff] [blame] | 98 | SSHLibrary.Write ssh ${node} |
Kailash Khalasi | b6e87fc | 2017-04-18 15:08:19 -0700 | [diff] [blame] | 99 | SSHLibrary.Read Until Prompt |
| 100 | SSHLibrary.Write ssh root@${hostname} |
| 101 | SSHLibrary.Read Until \# |
| 102 | SSHLibrary.Write ${cmd} |
| 103 | ${output}= SSHLibrary.Read Until \# |
| 104 | SSHLibrary.Close Connection |
| 105 | [Return] ${output} |
| 106 | |
Kailash Khalasi | 3a4e0f5 | 2017-06-01 16:35:59 -0700 | [diff] [blame] | 107 | Execute Command Locally |
| 108 | [Arguments] ${cmd} |
| 109 | ${output}= Run ${cmd} |
| 110 | [Return] ${output} |
| 111 | |
Kailash Khalasi | 2f567a4 | 2017-09-27 13:50:05 -0700 | [diff] [blame] | 112 | Execute ONOS Command |
| 113 | [Arguments] ${onos} ${port} ${cmd} ${user}=karaf ${pass}=karaf |
| 114 | ${conn_id}= SSHLibrary.Open Connection ${onos} port=${port} prompt=onos> timeout=300s |
| 115 | SSHLibrary.Login ${user} ${pass} |
| 116 | ${output}= SSHLibrary.Execute Command ${cmd} |
| 117 | SSHLibrary.Close Connection |
| 118 | [Return] ${output} |
| 119 | |
Kailash Khalasi | b6e87fc | 2017-04-18 15:08:19 -0700 | [diff] [blame] | 120 | Get Docker Container ID |
Kailash Khalasi | 2f567a4 | 2017-09-27 13:50:05 -0700 | [diff] [blame] | 121 | [Arguments] ${container_name} |
| 122 | [Documentation] Retrieves the id of the requested docker container running inside headnode |
| 123 | ${container_id}= Run docker ps | grep ${container_name} | awk '{print $1}' |
Kailash Khalasi | b6e87fc | 2017-04-18 15:08:19 -0700 | [diff] [blame] | 124 | Log ${container_id} |
| 125 | [Return] ${container_id} |
| 126 | |
| 127 | Get Docker Logs |
| 128 | [Arguments] ${system} ${container_id} ${user}=${USER} ${password}=${PASSWD} ${prompt}=prod:~$ |
| 129 | [Documentation] Retrieves the id of the requested docker container running inside given ${HOST} |
| 130 | ##In Ciab, all containers are run in the prod vm so we must log into that |
| 131 | ${conn_id}= SSHLibrary.Open Connection ${system} prompt=$ timeout=300s |
| 132 | SSHLibrary.Login With Public Key ${USER} %{HOME}/.ssh/${SSH_KEY} any |
| 133 | #SSHLibrary.Login ${HOST_USER} ${HOST_PASSWORD} |
Kailash Khalasi | f6de259 | 2017-09-13 13:37:14 -0700 | [diff] [blame] | 134 | SSHLibrary.Write ssh head1 |
Kailash Khalasi | b6e87fc | 2017-04-18 15:08:19 -0700 | [diff] [blame] | 135 | SSHLibrary.Read Until ${prompt} |
| 136 | SSHLibrary.Write docker logs -t ${container_id} |
| 137 | ${container_logs}= SSHLibrary.Read Until ${prompt} |
| 138 | SSHLibrary.Close Connection |
| 139 | Log ${container_logs} |
Kailash Khalasi | 2adbad8 | 2017-05-15 14:53:40 -0700 | [diff] [blame] | 140 | [Return] ${container_logs} |
Kailash Khalasi | 86e231e | 2017-06-06 13:13:43 -0700 | [diff] [blame] | 141 | |
| 142 | Remove Value From List |
| 143 | [Arguments] ${list} ${val} |
| 144 | ${length}= Get Length ${list} |
Kailash Khalasi | 2f567a4 | 2017-09-27 13:50:05 -0700 | [diff] [blame] | 145 | : FOR ${INDEX} IN RANGE 0 ${length} |
Kailash Khalasi | 86e231e | 2017-06-06 13:13:43 -0700 | [diff] [blame] | 146 | \ Log ${list[${INDEX}]} |
| 147 | \ ${value}= Get Dictionary Values ${list[${INDEX}]} |
| 148 | \ Log ${value[0]} |
| 149 | \ Run Keyword If '${value[0]}' == '${val}' Remove From List ${list} ${INDEX} |
Kailash Khalasi | 2f567a4 | 2017-09-27 13:50:05 -0700 | [diff] [blame] | 150 | \ Run Keyword If '${value[0]}' == '${val}' Exit For Loop |
| 151 | |
| 152 | Test Ping |
Kailash Khalasi | 422d1ab | 2018-09-18 09:54:26 -0700 | [diff] [blame] | 153 | [Arguments] ${status} ${src} ${user} ${pass} ${dest} ${interface} ${prompt}=$ ${prompt_timeout}=60s |
Kailash Khalasi | 55ca9f2 | 2018-09-17 17:36:55 -0700 | [diff] [blame] | 154 | [Documentation] SSH's into src and attempts to ping dest. Status determines if ping should pass | fail |
| 155 | ${conn_id}= SSHLibrary.Open Connection ${src} prompt=${prompt} timeout=${prompt_timeout} |
| 156 | SSHLibrary.Login ${user} ${pass} |
Kailash Khalasi | 422d1ab | 2018-09-18 09:54:26 -0700 | [diff] [blame] | 157 | ${result}= SSHLibrary.Execute Command ping -I ${interface} -c 5 ${dest} |
Kailash Khalasi | 55ca9f2 | 2018-09-17 17:36:55 -0700 | [diff] [blame] | 158 | SSHLibrary.Close Connection |
| 159 | Log ${result} |
| 160 | Run Keyword If '${status}' == 'PASS' Should Contain ${result} 64 bytes |
| 161 | Run Keyword If '${status}' == 'PASS' Should Contain ${result} 0% packet loss |
| 162 | Run Keyword If '${status}' == 'PASS' Should Not Contain ${result} 100% packet loss |
| 163 | Run Keyword If '${status}' == 'PASS' Should Not Contain ${result} 80% packet loss |
| 164 | Run Keyword If '${status}' == 'PASS' Should Not Contain ${result} 60% packet loss |
| 165 | Run Keyword If '${status}' == 'PASS' Should Not Contain ${result} 40% packet loss |
| 166 | Run Keyword If '${status}' == 'PASS' Should Not Contain ${result} 20% packet loss |
| 167 | Run Keyword If '${status}' == 'PASS' Should Not Contain ${result} Destination Host Unreachable |
| 168 | Run Keyword If '${status}' == 'FAIL' Should Not Contain ${result} 64 bytes |
| 169 | Run Keyword If '${status}' == 'FAIL' Should Contain ${result} 100% packet loss |
| 170 | Log To Console \n ${result} |
Kailash Khalasi | c930eac | 2018-09-05 12:18:23 -0700 | [diff] [blame] | 171 | |
| 172 | Clean Up Objects |
| 173 | [Arguments] ${model_api} |
Kailash Khalasi | c930eac | 2018-09-05 12:18:23 -0700 | [diff] [blame] | 174 | @{ids}= Create List |
| 175 | ${resp}= CORD Get ${model_api} |
| 176 | ${jsondata}= To Json ${resp.content} |
| 177 | Log ${jsondata} |
| 178 | ${length}= Get Length ${jsondata['items']} |
| 179 | : FOR ${INDEX} IN RANGE 0 ${length} |
| 180 | \ ${value}= Get From List ${jsondata['items']} ${INDEX} |
| 181 | \ ${id}= Get From Dictionary ${value} id |
| 182 | \ Append To List ${ids} ${id} |
| 183 | : FOR ${i} IN @{ids} |
| 184 | \ CORD Delete ${model_api} ${i} |
Kailash Khalasi | c930eac | 2018-09-05 12:18:23 -0700 | [diff] [blame] | 185 | |
| 186 | CORD Get |
| 187 | [Documentation] Make a GET call to XOS |
| 188 | [Arguments] ${service} |
| 189 | ${resp}= Get Request ${server_ip} ${service} |
| 190 | Log ${resp.content} |
| 191 | Should Be Equal As Strings ${resp.status_code} 200 |
| 192 | [Return] ${resp} |
| 193 | |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 194 | CORD Post |
| 195 | [Documentation] Make a POST call to XOS |
| 196 | [Arguments] ${service} ${data} |
| 197 | ${data}= Evaluate json.dumps(${data}) json |
| 198 | ${resp}= Post Request ${SERVER_IP} uri=${service} data=${data} |
| 199 | Log ${resp.content} |
| 200 | Should Be Equal As Strings ${resp.status_code} 200 |
| 201 | [Return] ${resp} |
| 202 | |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 203 | CORD Put |
| 204 | [Documentation] Make a PUT call to XOS |
| 205 | [Arguments] ${service} ${data} ${data_id} |
| 206 | ${data}= Evaluate json.dumps(${data}) json |
| 207 | ${resp}= Put Request ${SERVER_IP} uri=${service}/${data_id} data=${data} |
| 208 | Log ${resp.content} |
| 209 | Should Be Equal As Strings ${resp.status_code} 200 |
| 210 | ${id}= Get Json Value ${resp.content} /id |
| 211 | Set Suite Variable ${id} |
| 212 | [Return] ${resp} |
| 213 | |
Kailash Khalasi | c930eac | 2018-09-05 12:18:23 -0700 | [diff] [blame] | 214 | CORD Delete |
| 215 | [Documentation] Make a DELETE call to XOS |
| 216 | [Arguments] ${service} ${data_id} |
| 217 | ${resp}= Delete Request ${SERVER_IP} uri=${service}/${data_id} |
| 218 | Log ${resp.content} |
| 219 | Should Be Equal As Strings ${resp.status_code} 200 |
| 220 | [Return] ${resp} |
Kailash Khalasi | a0810ce | 2018-09-10 13:03:27 -0700 | [diff] [blame] | 221 | |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 222 | Get Service Owner Id |
| 223 | [Arguments] ${service} |
| 224 | ${resp}= CORD Get ${service} |
| 225 | ${jsondata}= To Json ${resp.content} |
| 226 | log ${jsondata} |
| 227 | ${length}= Get Length ${jsondata['items']} |
| 228 | : for ${INDEX} IN RANGE 0 ${length} |
| 229 | \ ${value}= Get From List ${jsondata['items']} ${INDEX} |
| 230 | \ ${id}= Get From Dictionary ${value} id |
| 231 | [Return] ${id} |
| 232 | |
Kailash Khalasi | a0810ce | 2018-09-10 13:03:27 -0700 | [diff] [blame] | 233 | Kill Linux Process |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 234 | [Arguments] ${process} ${ip} ${user} ${pass}=${None} ${container_type}=${None} ${container_name}=${None} |
| 235 | ${rc}= Login And Run Command On Remote System kill $(ps aux | grep '${process}' | awk '{print $2}'); echo $? ${ip} ${user} ${pass} ${container_type} ${container_name} |
You Wang | 88e1d85 | 2018-10-05 11:44:19 -0700 | [diff] [blame] | 236 | Should Be Equal As Integers ${rc} 0 |
You Wang | aee3511 | 2018-09-28 16:07:49 -0700 | [diff] [blame] | 237 | |
You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 238 | Check Remote File Contents |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 239 | [Arguments] ${file_should_exist} ${file} ${pattern} ${ip} ${user} ${pass}=${None} ${container_type}=${None} ${container_name}=${None} ${prompt}=~$ |
| 240 | ${output}= Login And Run Command On Remote System cat ${file} | grep '${pattern}' ${ip} ${user} ${pass} ${container_type} ${container_name} ${prompt} |
You Wang | 88e1d85 | 2018-10-05 11:44:19 -0700 | [diff] [blame] | 241 | Run Keyword If '${file_should_exist}' == 'True' Should Contain ${output} ${pattern} |
| 242 | ... ELSE Should Not Contain ${output} ${pattern} |
| 243 | |
| 244 | Check Ping |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 245 | [Arguments] ${ping_should_pass} ${dst_ip} ${iface} ${ip} ${user} ${pass}=${None} ${container_type}=${None} ${container_name}=${None} |
| 246 | ${result}= Login And Run Command On Remote System ping -I ${iface} -c 3 ${dst_ip} ${ip} ${user} ${pass} ${container_type} ${container_name} |
You Wang | 88e1d85 | 2018-10-05 11:44:19 -0700 | [diff] [blame] | 247 | Check Ping Result ${ping_should_pass} ${result} |
You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 248 | |
| 249 | Check Remote System Reachability |
You Wang | 88e1d85 | 2018-10-05 11:44:19 -0700 | [diff] [blame] | 250 | [Arguments] ${reachable} ${ip} |
You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 251 | [Documentation] Check if the specified IP address is reachable or not |
You Wang | f2ddde6 | 2019-02-13 16:53:10 -0800 | [diff] [blame] | 252 | ${result}= Run ping -c 3 ${ip} |
You Wang | 88e1d85 | 2018-10-05 11:44:19 -0700 | [diff] [blame] | 253 | Check Ping Result ${reachable} ${result} |
| 254 | |
| 255 | Check Ping Result |
| 256 | [Arguments] ${reachable} ${result} |
You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 257 | Run Keyword If '${reachable}' == 'True' Should Contain ${result} 64 bytes |
| 258 | Run Keyword If '${reachable}' == 'True' Should Contain Any ${result} 0% packet loss 0.0% packet loss |
| 259 | Run Keyword If '${reachable}' == 'True' Should Not Contain Any ${result} 100% packet loss 100.0% packet loss |
| 260 | Run Keyword If '${reachable}' == 'False' Should Not Contain ${result} 64 bytes |
| 261 | Run Keyword If '${reachable}' == 'False' Should Contain Any ${result} 100% packet loss 100.0% packet loss |