On Wed, 19 Feb 2014 16:33:28 +0000
Anna kos <[email protected]> wrote:

> Hi there,
> 
> I working on pica8 switches and using ryu controller for SDN research. I am
> sorry if my question will sound so dull but I have tried to manipulate many
> ways with codes and matching field but I cannot succeed the result.
> 
> Initially what I'm trying to do is just set up flow between two switch
> ports, tried to make changes to simple_switch_13.py so instead of packet
> flooding all ports as in normal switch I only wanted packet to go to
> certain ports...I have been trying for days and days and I have not been
> able to do it...can you please help me with a practical example on how to
> do the code..please help I need to do this 'simple' stuff asap so I'd move
> on !!!

simple_switch_13.py has the code to send packets to a certain port
instead of flooding to all ports.

https://github.com/osrg/ryu/blob/master/ryu/app/simple_switch_13.py#L83

As you can see, out_port is OFPP_FLOOD or a certain port number. The
latter is for you, use the number as an argument for OFPActionOutput:

https://github.com/osrg/ryu/blob/master/ryu/app/simple_switch_13.py#L88

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to