On Fri, 28 Nov 2014 09:33:28 +0200 "Vilius Palubinskas" <[email protected]> wrote:
> Thank you, the patch works without crashes. Thanks, I've applied the patch. > How to create drop rule for flow? I tried using this e.g. > [http://sourceforge.net/p/ryu/mailman/message/31977966/]: > > datapath = ev.msg.datapath > ofproto = datapath.ofproto > ofproto_parser = datapath.ofproto_parser > match = ofproto_parser.OFPMatch(eth_type=34525) #drop IPv6 > packets > self.add_flow(datapath, 0, match, [], 100) > > def add_flow(self, datapath, priority, match, actions, table): > ofproto = datapath.ofproto > parser = datapath.ofproto_parser > inst = > [parser.OFPInstructionActions(ofproto.OFPIT_APPLY_ACTIONS, > actions)] > mod = parser.OFPFlowMod(datapath=datapath, table_id=table, > priority=prioriority, > match=match, > instructions=inst) > datapath.send_msg(mod) > print('flow send') > > in switch I see strange rule without Action: OF spec says that a match with empty actions drops a matched packet, I think. ------------------------------------------------------------------------------ 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
