On Mon, 9 Sep 2013 17:12:49 +0900 YAMAMOTO Takashi <[email protected]> wrote:
> Signed-off-by: YAMAMOTO Takashi <[email protected]> > --- > ryu/app/simple_switch.py | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/ryu/app/simple_switch.py b/ryu/app/simple_switch.py > index 0397bc4..400092c 100644 > --- a/ryu/app/simple_switch.py > +++ b/ryu/app/simple_switch.py > @@ -43,13 +43,8 @@ class SimpleSwitch(app_manager.RyuApp): > def add_flow(self, datapath, in_port, dst, actions): > ofproto = datapath.ofproto > > - wildcards = ofproto_v1_0.OFPFW_ALL > - wildcards &= ~ofproto_v1_0.OFPFW_IN_PORT > - wildcards &= ~ofproto_v1_0.OFPFW_DL_DST > - > match = datapath.ofproto_parser.OFPMatch( > - wildcards, in_port, 0, dst, > - 0, 0, 0, 0, 0, 0, 0, 0, 0) > + in_port=in_port, dl_dst=dst) Actually, passing partial parameters was not recommended because the API doesn't support all features (that is, IP address mask). However, a patch for the IP address mask feature was posted so I merge this. ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. Consolidate legacy IT systems to a single system of record for IT 2. Standardize and globalize service processes across IT 3. Implement zero-touch automation to replace manual, redundant tasks http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
