Closed davidban77 closed 4 years ago
@davidban77 This is the expected behavior--you can definitely argue whether this should be the behavior or not.
In both cases the ping occurred i.e. the operation executed. In other words, failed is not tracking the number of ping responses, but whether the operation executed.
You would need to drill into the data structure and decide what constitutes failure in your context.
I am somewhat doubtful it is worth changing this since it would be a breaking change.
Got it @ktbyers, thanks for the reply. I worked on the playbook by looking deeper into the data structure and comparing the probes and the packet loss.
I just would have thought that the task would have flagged the failed field when you have 100% packet loss.
Hello!
I have been working with
napalm_ping
module and noticed that it incorrectly specifies asfailed: False
to unsuccessful pings.This is the returned output of 2 pings (one good and one bad), and you can see that both are marked as
failed: False
You can see that the probes sent and the packet loss is the same for the first one (100% packet loss).
I can take a look at the module and submit a PR if you want.