Hi,

On 2016年05月31日 09:37, Iuri Finger wrote:
> Hello!
> I'm following the official tutorial Ryu, and I was a big doubt on the 
> implementation of simplemonitor.py
>
> I've accomplished communication tests with simple_switch_13.py as the 
> tutorial told me and it all worked out!
>
> But I was confused at the time to test and implement the simplemonitor.py
> What I did was:
> I remember the simple_switch_13.py is running and cominicando with everything 
> as the tutorial says.
>
> So after testing, without implementing anything I ran this command:
>
> # Ryu-manager --verbose ./simple_monitor.py
>
> and accused this error:
>
> loading ./simple_monitor.py app
> Traceback (most recent call last):
> File "/ usr / local / bin / ryu-manager", line 9, in <module>
> load_entry_point ( 'ryu 4.2.1 ==' 'console_scripts' 'ryu-manager') ()
> File "/usr/local/lib/python2.7/dist-packages/ryu/cmd/manager.py", line 88, in 
> main
> app_mgr.load_apps (app_lists)
> File "/usr/local/lib/python2.7/dist-packages/ryu/base/app_manager.py", line 
> 414, in load_apps
> cls = self.load_app (app_cls_name)
> File "/usr/local/lib/python2.7/dist-packages/ryu/base/app_manager.py", line 
> 391, in load_app
> mod = utils.import_module (name)
> File "/usr/local/lib/python2.7/dist-packages/ryu/utils.py", line 97, in 
> import_module
> mod = importlib.import_module (name)
> File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
> __import __ (name)
> ImportError: No module named simple_monitor
>
> I was confused in this case.
> I should create another file called simple_monitor.py in the / ryu / ryu / 
> app and copy said commands in the tutorial?
> Or should paste tutorial commands with the simple_switch_13.py file?
> Or am I just missing the place where the call simple_monitor.py?

Please create ryu/app/simple_monitor.py file by pasting from Ryu-Book tutorial.
   
http://osrg.github.io/ryu-book/en/html/traffic_monitor.html#implementation-of-traffic-monitor

Then, execute "ryu-manager" command.
   # ryu-manager --verbose ryu/app/simple_monitor.py

Thanks,
Iwase

>
> I do not know if I made myself clear, but I would love your help.
>  From a longer-thanks!
>
> --
> */Atenciosamente/*
> *Iuri Finger- /Netvisual TELECOM/*
>
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
> patterns at an interface-level. Reveals which users, apps, and protocols are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to