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
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
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
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()
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,