Hi,

On 2014年12月29日 19:00, sachidanand das wrote:
> Hi,
> 
> I am trying to test my hardware switch that is openflow enabled. When i run 
> the below script it stops as shown below saying "Connect unknown SW". Can you 
> help me with this?
> 
> 
> ryu@ryu-vm:~/ryu$ PYTHONPATH=. ./bin/ryu-manager --test-switch-dir 
> ryu/tests/switch/of13/ ryu/tests/switch/tester.py
> loading app ryu/tests/switch/tester.py
> loading app ryu.controller.ofp_handler
> instantiating app ryu.controller.ofp_handler of OFPHandler
> instantiating app ryu/tests/switch/tester.py of OfTester
> target_dpid=0000000000000001
> tester_dpid=0000000000000002
> Test files directory = ryu/tests/switch/of13/
> --- Test start ---
> waiting for switches connection...
> dpid=002438a305000000 : Connect unknown SW.
> dpid=002438a476000000 : Connect unknown SW.

It seems that your switch has dpid=002438a305000000 and dpid=002438a476000000.
Right?

By default, switch/tester.py uses dpid=0000000000000001 for "Target" switch
and dpid=0000000000000002 for "Tester" switch.
If you want to use different dpid for Target/Tester switch,
please execute switch/tester.py with the following options.

e.g.)
  dpid=002438a305000000 : Target switch.
  dpid=002438a476000000 : Tester switch(auxiliary switch).

$ PYTHONPATH=. ./bin/ryu-manager --test-switch-target 002438a305000000 
--test-switch-tester 002438a476000000 --test-switch-dir ryu/tests/switch/of13/ 
ryu/tests/switch/tester.py

For details, pease refer to the Ryu-Book.
 
http://osrg.github.io/ryu-book/en/html/switch_test_tool.html#how-to-run-the-test-tool

Thanks

> 
> 
> Regards,
> Satchidanand Das
> 
> 
> 
> 
> 
> 
> 
> ---------- Forwarded message ----------
> From: *FUJITA Tomonori* <[email protected] 
> <mailto:[email protected]>>
> Date: Tue, Dec 23, 2014 at 10:05 AM
> Subject: Re: [Ryu-devel] RYU with openflow enabled switches
> To: [email protected] <mailto:[email protected]>
> 
> 
> Please keep the mailing list,
> 
> On Tue, 23 Dec 2014 09:25:22 +0530
> Satchidanand Das <[email protected] <mailto:[email protected]>> 
> wrote:
> 
>> Can you tell me how to carry out tests with the IBM Rack Switch G8264? Like
>> how do you connect the switch with the controller. Is there any script
>> available in the RYU package that demonstrates connection of the RYU
>> controller with a hardware switch like IBM Rack Switch G8264?
> 
> The information about our test is available at:
> 
> http://osrg.github.io/ryu-book/en/html/switch_test_tool.html
> 
> Our test code is included in Ryu source code.
> 
> 
> 
> 
> -- 
> Regards
> 
> Sachit
> 
> 
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> 
> 
> 
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> 

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to