named-data / mini-ndn

Mininet-based NDN emulator (mailing list: http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn)
https://minindn.memphis.edu
GNU General Public License v3.0
72 stars 41 forks source link

examples/nlsr/pingall.py fails #54

Open nikosft opened 3 years ago

nikosft commented 3 years ago

This script fails with the following error

Traceback (most recent call last):
  File "examples/nlsr/pingall.py", line 56, in <module>
    Experiment.startPctPings(ndn.net, args.nPings, args.pctTraffic)
  File "/home/mmlab/mini-ndn/minindn/helpers/experiment.py", line 98, in startPctPings
    NDNPingClient.ping(host, other, nPings)
  File "/home/mmlab/mini-ndn/minindn/helpers/ndnpingclient.py", line 45, in ping
    str.replace(prefix[1:], "/", "-")

line #98 of mini-ndn/minindn/helpers/experiment.py should be replaced from NDNPingClient.ping(host, other, nPings) to NDNPingClient.ping(host, other.name, nPings)

Jiacheng98 commented 3 years ago

Thanks!!!