On Tue, 29 Oct 2013 11:24:43 +0900 "watanabe.fumitaka" <[email protected]> wrote:
> Hi, yamamoto. > > Is correction below correct with the new API? > If satisfactory now, I will try test. > > > --- a/ryu/app/rest_router.py > +++ b/ryu/app/rest_router.py > @@ -1764,13 +1764,9 @@ class OfCtl_v1_2(OfCtl): > if dec_ttl: > actions.append(ofp_parser.OFPActionDecNwTtl()) > if src_mac: > - set_src = ofp_parser.OFPMatchField.make(ofp.OXM_OF_ETH_SRC, > - src_mac) > - actions.append(ofp_parser.OFPActionSetField(set_src)) > + actions.append(ofp_parser.OFPActionSetField(eth_src=src_mac)) > if dst_mac: > - set_dst = ofp_parser.OFPMatchField.make(ofp.OXM_OF_ETH_DST, > - dst_mac) > - actions.append(ofp_parser.OFPActionSetField(set_dst)) > + actions.append(ofp_parser.OFPActionSetField(eth_dst=dst_mac)) > if outport is not None: > actions.append(ofp_parser.OFPActionOutput(outport, 0)) > Applied. Thanks guys! ------------------------------------------------------------------------------ Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
