<div dir="ltr">Sorry about that.<br><br>POX command line:<br>./pox.py forwarding.l2_learning openflow.of_01 --address=ip_address --port=6633 samples.pretty_log log.level --packet=WARN myself_module --interval=2<br><br>POX version: betta<div>
<br></div><div>OF switch: Open vSwitch 1.9</div><div><br></div><div>And the code in myself_module is done the things that execute algorithm and update database(Written in _handle_timer_temp callback function) which cost about ten seconds and myself_module will be triggered by _handle_ConnectionUp like below:</div>
<div><br></div><div><div>class temp_class (object):</div><div><br></div><div> def __init__ (self, interval):</div><div><br></div><div> core.openflow.addListeners(self)</div><div> self.interval = interval</div><div>
db = MySQLdb.connect(host="", user="", passwd="", db="")</div><div> cursor = db.cursor()#Create instance to access DB</div><div> cursor.execute("SELECT dpid, Dead, Maskbit, c_subnet_start, c_subnet_end, Load_balancing_algorithm FROM Pica8_Switch_Info ")</div>
<div> self.return_nu_rows = cursor.rowcount </div><div> self.return_switch_info = cursor.fetchall()</div><div> db.close()</div><div><br></div><div> def _handle_ConnectionUp (self, event):</div><div><br></div><div>
log.debug("Default Connection %s" % (event.connection,))</div><div><br></div><div> Timer(float(self.interval), _handle_timer_temp, recurring=False, args=(core.openflow, self.return_nu_rows, self.return_switch_info))</div>
<div><br></div><div><br></div><div>def launch (interval): #User parameters</div><div> """</div><div> Starts modules</div><div> """</div><div> core.registerNew( Wayne_class, interval)</div>
</div><div><br></div><div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/24 Murphy McCauley <span dir="ltr"><<a href="mailto:murphy.mccauley@gmail.com" target="_blank">murphy.mccauley@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I don't think you've provided enough information for an explanation to be offered.<br>
<br>
Please see the final question on the POX wiki's FAQ for guidance to help us help you.<br>
<span class="HOEnZb"><font color="#888888"><br>
-- Murphy<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Jul 23, 2013, at 9:23 PM, Hong Wayne wrote:<br>
<br>
> Dear all:<br>
><br>
><br>
> I faced a problem when OpenFlow switch connect to POX and some module I modified triggered at this time(ConnectionUp event) and cost some times.<br>
><br>
> When this module was executed completely, the POX command line appear the messages like below:<br>
><br>
> [openflow.of_01] already disconnected!<br>
> [openflow.of_01] closed connection<br>
> [openflow.of_01] disconnected<br>
><br>
> So I want to ask why these error message happened? Whether POX run some module I didn't notice?<br>
><br>
> Thanks for helping.<br>
</div></div></blockquote></div><br></div>