[pox-dev] event parsed error

2014-08-19 Thread 张伟
Hi all, I want to manually set a flow for test. The switch sends a packet_in message to pox controller. This is the code: from pox.core import core import pox.openflow.libopenflow_01 as of from pox.lib.revent import * from pox.lib.addresses import IPAddr, EthAddr from collections import

Re: [pox-dev] event parsed error

2014-08-19 Thread Murphy McCauley
It seems like you want to be listening to the PacketIn event, not the ConnectionUp event. -- Murphy On Aug 19, 2014, at 12:35 PM, zhang...@126.com wrote: Hi all, I want to manually set a flow for test. The switch sends a packet_in message to pox controller. This is the code: from

Re: [pox-dev] event parsed error

2014-08-19 Thread 张伟
Yes, just now I change the event to like that def _handle_PacketIn (event): packet = event.parsed msg = of.ofp_flow_mod() msg.match = of.ofp_match.from_packet(packet, event.port); msg.buffer_id = event.ofp.buffer_id msg.idle_timeout = 10

Re: [pox-dev] event parsed error

2014-08-19 Thread Murphy McCauley
Please see What are these log messages from the packet subsystem? in the POX FAQ. -- Murphy On Aug 19, 2014, at 1:29 PM, 张伟 zhang...@126.com wrote: Yes, just now I change the event to like that def _handle_PacketIn (event): packet = event.parsed msg = of.ofp_flow_mod()

[pox-dev] pox app multi-thread or single-thread, why buffer_id in controller side sometimes is not sequence

2014-08-19 Thread 张伟
Hi all, I want to know for the application eg l2_learning. If we run this component, l2_learning is single thread or multi-thread? My simple test: def _handle_PacketIn (event): packet = event.parsed msg = of.ofp_flow_mod() msg.match = of.ofp_match.from_packet(packet,