On Sat, 22 Nov 2014 19:04:51 -0500 Ali Reza Zamani <[email protected]> wrote:
> Hi all, > > I have a question regarding defining the rules for a switch in in Ryu > controller. > I am running my data plane using mininet. How can I insert some > forwarding rule for the switches. for example I want that all of the > packet which are using destination port xx forwarded to specific host. > Howe can I define these kinds of rules. > Also how can I insert the rules for the specific switches and not all of > them. When you want to install flows, you can check out the dpid of a switch. For example, when a switch and a controller are connected, you can catch EventOFPSwitchFeatures event, check out the dpid and then decide to install rules or not: https://github.com/osrg/ryu/blob/master/ryu/app/simple_switch_13.py#L32 ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
