macEntry.lastTimeSeen is just a float, not a function.  All you need to do are 
remove the parentheses from it on line 280.

This was fixed in the carp branch three months ago.  I've cherry picked the fix 
into betta, so if you pull, it should work.

Alternatively, just upgrade to carp.  host_tracker has gotten other 
improvements too.

-- Murphy

On Aug 18, 2013, at 5:24 AM, adria sole <[email protected]> wrote:

> Hi all,
> 
> I have a topology with two OF switches directly connected, at each switch 
> there is a host connected. When I run host_tracker.py with only one OF switch 
> up I get:
> INFO:host_tracker:Learned 150864676813 2 b8:27:eb:11:16:48
> INFO:host_tracker:Learned 150864676813 2 b8:27:eb:11:16:48 got IP 192.168.2.40
> 
> Which it is ok, but when I run openflow on the other switch i get:
> INFO:host_tracker:Learned 150864676813 2 b8:27:eb:11:16:48 moved to 
> 150868579941 2
> ERROR:core:Exception while handling OpenFlowNexus!PacketIn...
> Traceback (most recent call last):
>   File "/home/adria/Descargas/pox/pox/lib/revent/revent.py", line 234, in 
> raiseEventNoErrors
>     return self.raiseEvent(event, *args, **kw)
>   File "/home/adria/Descargas/pox/pox/lib/revent/revent.py", line 281, in 
> raiseEvent
>     rv = event._invoke(handler, *args, **kw)
>   File "/home/adria/Descargas/pox/pox/lib/revent/revent.py", line 159, in 
> _invoke
>     return handler(self, *args, **kw)
>   File "/home/adria/Descargas/pox/pox/host_tracker/host_tracker.py", line 
> 280, in _handle_PacketIn
>     str(macEntry), macEntry.lastTimeSeen(),
> TypeError: 'float' object is not callable
> INFO:host_tracker:Learned 150868579941 3 00:23:32:cc:08:e0
> INFO:host_tracker:Learned 150868579941 3 00:23:32:cc:08:e0 got IP 192.168.2.41
> 
> Where can I fix this? I don't know which 'float' object is not callable...
> 
> Thank you in advance!
> 

Reply via email to