[Mini-NDN] minindn experiment
sepehr abdous
sepehrabdous1375 at gmail.com
Fri Nov 11 14:40:01 PST 2016
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 &")
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
Yahoo mail: 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/20161112/448cf71f/attachment.html>
More information about the Mini-NDN
mailing list