Re: [Ryu-devel] Writing flow tables in simple switch

2018-06-20 Thread IWAMOTO Toshihiro
On Mon, 18 Jun 2018 20:24:13 +0900, udeh Paschal wrote: > def add_flow(self, datapath, in_port, dst, src, actions): > But when I run the code I get the error: > > self.add_flow(datapath, 0, match, actions) > TypeError: add_flow() takes exactly 6 arguments (5 given) > > Please I need help

[Ryu-devel] Writing flow tables in simple switch

2018-06-18 Thread udeh Paschal
Hi guys, i am new to Ryu and I am trying to add my own flow table to the simple switch python file but I am getting errors. Below is the code I used @set_ev_cls(ofp_event.EventOFPSwitchFeatures, CONFIG_DISPATCHER) def switch_features_handler(self, ev): datapath = ev.msg.datapath