[Mini-NDN] minindn experiment

Ashlesh Gawande (agawande) agawande at memphis.edu
Fri Nov 11 14:46:00 PST 2016


Did you install Mini-NDN again after adding the experiment?

Ashlesh

On Nov 11, 2016 4:40 PM, sepehr abdous <sepehrabdous1375 at gmail.com> wrote:
Hello all,
I'm trying to write a simple experiment for using in minindn
so I make a file called ex1_experiment.py
and put the following code in it:

from ndn.experiments.experiment import Experiment

class ExampleExperiment(Experiment):
    def __init__(self, args):
        Experiment.__init__(self, args)

    def setup(self):
        for host in self.net.hosts:
            host.cmd("ndnpingserver host.name<http://host.name> &")

    def run(self):
        for host in self.net.hosts:
            # By default status.txt would be stored
            # at /tmp/host/status.txt
            host.cmd("nfd-status > status.txt")

Experiment.register("ee", ExampleExperiment)

and save it
but when I try to use it by:
sudo minindn --experiment=ee
I get the following error

No experiment named ee


can someone help me with this please?
thank you

--
Sepehr Abdous
Faculty: abdous at ce.sharif.edu<mailto:abdous at ce.sharif.edu>
Yahoo mail: sepehrabdous at yahoo.com<mailto:sepehrabdous at yahoo.com>
Cellphone:+989194030591
School of computer engineering
Sharif University of Technology
Tehran, Iran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20161111/490b8e10/attachment.html>


More information about the Mini-NDN mailing list