In general, you should never have reason to call _handle_PacketIn() yourself.  
It is an event handler and is called by the OpenFlow component when a packet 
has been sent to the controller from a switch.

If you want to keep track of more data, it seems like you should be able to do 
it exactly how the *current* data is kept track of.  It's set up in __init__ 
and stored in instance attributes (attributes of "self").  Inside 
_handle_PacketIn(), the instance attributes are accessed.  This is exactly how, 
e.g., the macToPort table is used.

-- Murphy

On Aug 29, 2013, at 3:34 AM, Muhammad Asad <[email protected]> 
wrote:

> I am editing forwarding/l2_learning.py to enhance its functionality but I 
> need to initialize some more arrays and use it in _handle_PacketIn function.
> 
> If I just declare all these extra arrays in __init__ and pass it as argument 
> to _handle_PacketIn, I am passing more than default 2 arguments to it. It 
> gives an error that somewhere else I need to pass 3 arguments but I am 
> passing just 2.
> 
> Which other files to I need to change in the pox folder to work with it?

Reply via email to