On Mar 23, 2013, at 3:41 AM, Hong Wayne wrote:

> Thanks again.
> 
> But in component openflow.keepalive, I want to modify the period of sending 
> feature request.

I'm confused.  This component only sends echo requests.  You can adjust the 
rate at which it sends them from the commandline: openflow.keepalive 
--interval=<number of seconds>

> And in the case of switch disconnection, the DEBUG level show the following 
> messages:
> 
> [openflow.of_01         ] [44-87-fc-79-e3-64 1] timed out
> [openflow.of_01         ] [44-87-fc-79-e3-64 1] already disconnected
> [openflow.of_01         ] [44-87-fc-79-e3-64 1] closed 

This seems fine to me?

> I think maybe I need to modify codes at of_01 where dumping the message 
> ''timed out''.
> 
> But I didn't find the code that I think. Where can I modify that in the 
> program of_01.py?

This is actually triggered in openflow.keepalive by a call to 
Connection.disconnect().  But if all you want to do is modify the interval at 
which switches are checked, you can set that from the commandline.  There's 
also the global variable _switch_timeout which is more or less how long the 
switch has to respond to an echo request (if an echo request is sent and the 
switch takes longer than this to send something back, we consider it dead).  
(I've actually just pushed a commit that makes this configurable too with the 
--timeout=seconds option.)


Hope that helps.

-- Murphy

Reply via email to