[pox-dev] of_tutorial.py
Amer
amer7777 at hotmail.com
Sat Nov 16 12:48:33 PST 2013
Hi,
I agree with you
There is a listener command when it is called it listens to all handle functions when they have been written with official name, such as:
> _handle_PacketIn
Also, you can read this topic:
Listeners in class
In pox dev archive
Best regards,
Amer
On ١٦/١١/٢٠١٣, at ١١:٢٩ م, farshad tajedin <farshad.tajedin at gmail.com> wrote:
> hi amer
> in the of_tutorial.py file and in lunch function below code is exist:
> '''''''''''''''''''''''''''''''''''''''''''''''''''''''
> def start_switch (event):
>
> log.debug("Controlling %s" % (event.connection,))
> Tutorial(event.connection)
> core.openflow.addListenerByName("ConnectionUp", start_switch)
> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
> and it call _handle_PacketIn function that defined in the class
> tutorial, i agree with you that it must be in form of
> core.openflow.addListenerByName("PacketInReceived", _handle_PacketIn)
> to calling _handle_PacketIn function but the first one do this!!!! i
> dont know how
>
> On 11/16/13, Amer <amer7777 at hotmail.com> wrote:
>> Hello,
>>
>> You should add a listener something like:
>> core.openflow.addListenerByName("PacketInReceived", _handle_PacketIn)
>> Or you can check Pox wiki to correct this statement, also this statement
>> should be added in def launch
>>
>> Or check in pox archive the topic
>> Listener in class
>>
>> Cheers
>> Amer
>>
>> Sent from my iPhone
>>
>> On ١٦/١١/٢٠١٣, at ٥:١٩ م, farshad tajedin <farshad.tajedin at gmail.com>
>> wrote:
>>
>>> hi
>>> i have a question about of_tutorial.py: how " _handle_PacketIn"
>>> function is called?
>>>
>>> --
>>> Best Regards
>>>
>>> Farshad Tajedin
>
>
> --
> Best Regards
>
> Farshad Tajedin
>
More information about the pox-dev
mailing list