Sorry for the post-push comment, took a look over it, seems reasonable enough.  One question:<br>+    while True:<br>
+        if not idl.run():<br>
+            continue<br>+       &lt;other stuff&gt;<br>+   ...<br>I think idl.run is a fairly fast check itself, will this tight of a loop burn a lot of cycles?<br><br>If so, I&#39;ll use my winnings to purchase one xen-optimization nitpick =)<br>

+    for n in session.xenapi.network.get_all():<br>
+        rec = session.xenapi.network.get_record(n)<br>You can use session.xenapi.network.get_all_records(), since you don&#39;t use the reference directly anyways.<br><br>  -Reid<br><br><div class="gmail_quote">On Wed, Aug 25, 2010 at 5:00 PM, Justin Pettit <span dir="ltr">&lt;<a href="mailto:jpettit@nicira.com">jpettit@nicira.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Aug 25, 2010, at 4:36 PM, Ben Pfaff wrote:<br>
<br>
&gt; Since this modifies the xenserver directory it needs a Signed-off-by:<br>
&gt; line.  (Maybe some of the other patches too?)<br>
<br>
</div>Okay, I went back and did that to the three patches that touched XenServer files.<br>
<div class="im"><br>
&gt;&gt; +    # Start daemon to monitor external ids<br>
&gt;&gt; +    export PYTHONPATH=/usr/share/openvswitch/python<br>
&gt;&gt; +    /usr/share/openvswitch/scripts/monitor-external-ids \<br>
&gt;&gt; +                 --pidfile --detach &quot;$VSWITCHD_OVSDB_SERVER&quot;<br>
&gt;<br>
&gt; I would write<br>
&gt;        PYTHONPATH=/usr/share/openvswitch/python \<br>
&gt;            /usr/share/openvswitch/scripts/monitor-external-ids \<br>
&gt;            --pidfile --detach &quot;$VSWITCHD_OVSDB_SERVER&quot;<br>
&gt; instead, to ensure that PYTHONPATH doesn&#39;t &quot;leak&quot; into anything else<br>
&gt; that runs after this in the init script.  Probably doesn&#39;t matter,<br>
&gt;        but...<br>
<br>
</div>I had meant to do that before sending it out.  Thanks!<br>
<div class="im"><br>
&gt;&gt; +    if [ -e /var/run/openvswitch/monitor-external-ids.pid ]; then<br>
&gt;&gt; +        kill `cat /var/run/openvswitch/monitor-external-ids.pid`<br>
&gt;&gt; +        rm /var/run/openvswitch/monitor-external-ids.pid<br>
&gt;&gt; +    fi<br>
&gt;<br>
&gt; Doesn&#39;t the stop_daemon function work here?  Oh, I see, we don&#39;t set a<br>
&gt; _PIDFILE variable for the monitor daemon.  Maybe we should.  (And then<br>
&gt; we&#39;d need --pidfile-name=$whatever_PIDFILE when we start the daemon.)<br>
<br>
</div>Yeah, that&#39;s why I didn&#39;t do it.  I plan to clean this part up, but we were in a rush to get this out.<br>
<div class="im"><br>
&gt; I kind of zoned out reading a lot of this Python code.  I&#39;ve read and<br>
&gt; written a lot of Python lately and can&#39;t quite maintain my attention.<br>
&gt;<br>
&gt; I assume it works.<br>
<br>
<br>
</div>That was the least enthusiastic review of code I&#39;ve ever seen.  At least when I pretend to review vconn and ovsdb code, I have the dignity to lie about it.  &quot;Looks awesome!&quot;  &quot;Fascinating!&quot;  &quot;I love me some self-generating code!&quot;<br>


<br>
Thanks for the review.  I also made the minor changes you had mentioned and pushed.<br>
<font color="#888888"><br>
--Justin<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openvswitch.org">dev@openvswitch.org</a><br>
<a href="http://openvswitch.org/mailman/listinfo/dev_openvswitch.org" target="_blank">http://openvswitch.org/mailman/listinfo/dev_openvswitch.org</a><br>
</div></div></blockquote></div><br>