How can I get packet loss information from python mininet pings?

293 views Asked by At

Using the Python Mininet API, I'm sending a single ping.

ploss = net.ping(hosts=[node1, node2])

This prints to the console the results of packets lost/received:

h1 -> h2 
h2 -> h1 
*** Results: 0% dropped (2/2 received)

However, nothing is returned. ploss is None. I need to store that information to validate after ping is made. How can I accomplish this?

0

There are 0 answers