Does this happen reliably?  If so, in "/home/sdn/pox/pox/openflow/__init__.py" 
at line 282, can you insert a log or print statement like:
print str(value),' ',repr(value)

.. and send the new console output?

-- Murphy

On Apr 9, 2013, at 6:10 AM, 吴亚楠 wrote:

> 
> help!
> 
> sdn@IPL204:~/pox$ ./pox.py forwarding.l3_learning 
> --fakeways=172.16.0.1,172.16.1.1
> POX 0.1.0 (betta) / Copyright 2011-2013 James McCauley, et al.
> INFO:core:POX 0.1.0 (betta) is up.
> INFO:openflow.of_01:[90-e2-ba-28-2d-d5 1] connected
> INFO:packet:(dhcp parse) warning DHCP packet data too short to parse header: 
> data len 86
> INFO:packet:(dhcp parse) warning DHCP packet data too short to parse header: 
> data len 86
> Task <Timer/tid1> caused exception and was de-scheduled
> Traceback (most recent call last):
>  File "/home/sdn/pox/pox/lib/recoco/recoco.py", line 276, in cycle
>    rv = t.execute()
>  File "/home/sdn/pox/pox/lib/recoco/recoco.py", line 94, in execute
>    return self.gen.send(v)
>  File "/home/sdn/pox/pox/lib/recoco/recoco.py", line 751, in run
>    rv = self._callback(*self._args,**self._kw)
>  File "/home/sdn/pox/pox/forwarding/l3_learning.py", line 130, in 
> _handle_expiration
>    core.openflow.sendToDPID(dpid, po)
>  File "/home/sdn/pox/pox/openflow/__init__.py", line 346, in sendToDPID
>    if dpid in self._connections:
>  File "/home/sdn/pox/pox/openflow/__init__.py", line 282, in __contains__
>    return item in self.values()
>  File "/home/sdn/pox/pox/lib/addresses.py", line 315, in __cmp__
>    return -other.__cmp__(self)
> AttributeError: 'Connection' object has no attribute '__cmp__'

Reply via email to