Ping
Performs Ping operation for destination IPv4 or IPv6 or Hostname. The URI to perform ping operation is:
restconf/operations/ping
Supported HTTP Operations
Hostname: https://<host>/restconf/operations/ping
Request body: {
"icx-openconfig-ping:input": {
"target": {
"afi" : "IPV4",
"destination" : "www.google.com",
"count" : "5"
}
}
}
Response body:
{
"icx-openconfig-ping:output" : {
"result" : "Sending 5, 16-byte ICMP Echo to 172.217.160.132, timeout 5000 msec, TTL 64\nType Control-c to abort\nReply from 172.217.160.132 : bytes=16 time=10ms
TTL=112\nReply from 172.217.160.132 : bytes=16 time=9ms TTL=112\nReply from 172.217.160.132 : bytes=16 time=9ms TTL=112\nReply from 172.217.160.132 : bytes=16 time=9ms
TTL=112\nReply from 172.217.160.132 : bytes=16 time=9ms TTL=112\nSuccess rate is 100 percent (5/5), round-trip min/avg/max=9/9/10 ms.\n"
}
}
IPv4: https://<host>/restconf/operations/ping
Request body:
{
"icx-openconfig-ping:input": {
"target": {
"afi" : "IPV4",
"destination" : "xx.xx.xx.xx",
"count" : "5"
}
}
}
Response body: {
"icx-openconfig-ping:output" : {
"result" : "Sending 5, 16-byte ICMP Echo to 10.177.112.129, timeout 5000 msec, TTL 64\nType Control-c to abort\nReply from 10.177.112.129 : bytes=16 time=1ms
TTL=64\nReply from 10.177.112.129 : bytes=16 time=5ms TTL=64\nReply from 10.177.112.129 : bytes=16 time<1ms TTL=64\nReply from 10.177.112.129 : bytes=16 time<1ms
TTL=64\nReply from 10.177.112.129 : bytes=16 time<1ms TTL=64\nSuccess rate is 100 percent (5/5), round-trip min/avg/max=0/1/5 ms.\n"
}
}
IPv6: https://<host>/restconf/operations/ping
Request body:
{
"icx-openconfig-ping:input": {
"target": {
"afi" : "IPV6",
"destination" : "1:2::3",
"count" : "5"
}
}
}
Response body: None