Hi,
while Ryu supports OpenFlow 1.0, 1.2 and 1.3, the simple_switch.py example
works with OpenFlow 1.0 only (search for v1_0 in the source code for
details).
As LINC switch uses OpenFlow 1.3 by default, and does not support OpenFlow
1.0, you get that "closed because of bad_initial_message" output.
A patch for OF 1.2 compatibility for simple_switch.py was posted on this
list
some time ago. Using that and setting the backend to linc_us3 in the
LINC switches sys.config should make it work.
Cheers
Jeremias
2013/2/12 Gandhimathi Velusamy <[email protected]>
> Hi,
> I installed Ryu and thought of trying the simple_switch.py :
> When I run this code first and then If I start the LINC switch, i am
> getting the following error in the LINC console
> (linc@roadrunner)1> 02:04:08.514 [info] Created port:
> {1,[{interface,"tap-linc-port1"},{ip,"10.0.0.1"}]}
> 02:04:08.535 [info] Created port:
> {2,[{interface,"tap-linc-port2"},{ip,"10.0.0.2"}]}
> 02:04:08.542 [info] Connection to controller localhost:6633/0 closed
> because of bad_initial_message
> 02:04:13.544 [info] Connection to controller localhost:6633/0 closed
> because of bad_initial_message
> 02:04:18.545 [info] Connection to controller localhost:6633/0 closed
> because of bad_initial_message
> 02:04:23.547 [info] Connection to controller localhost:6633/0 closed
> because of bad_initial_message
>
> the following is the output of the simple_switch.py
> root@roadrunner:/home/flow/ryu/ryu/app# ryu-manager ./simple_switch.py
> flagfile = /etc/ryu/ryu.conf
> loading app ryu.controller.ofp_handler
> loading app ./simple_switch.py
> instantiating app ./simple_switch.py
> instantiating app ryu.controller.ofp_handler
>
> May I know the reason? Do I need any configuration set up inside ryu?
>
> Thanks
> gandhi
>
>
>
> ------------------------------------------------------------------------------
> Free Next-Gen Firewall Hardware Offer
> Buy your Sophos next-gen firewall before the end March 2013
> and get the hardware for free! Learn more.
> http://p.sf.net/sfu/sophos-d2d-feb
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel