<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 02/03/2012 10:42 AM, Ansis Atteka wrote:
    <blockquote
cite="mid:CAA=3Oqkuk_tv60XBz+QO73uQ8ssCM9bNbTdg5RjJ-ciRTjCM_g@mail.gmail.com"
      type="cite"><br>
      <div class="gmail_quote">
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div class="gmail_quote">
            <div class="im">On Thu, Feb 2, 2012 at 10:10 PM, Laine Stump
              <span dir="ltr"><<a moz-do-not-send="true"
                  href="mailto:laine@laine.org" target="_blank">laine@laine.org</a>></span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
              </blockquote>
            </div>
            <div class="im">
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div bgcolor="#FFFFFF" text="#000000"> There are a few
                  other places where it may be appropriate to do the
                  bridge removal during error paths; this same search
                  may show you some of them, and some others may show up
                  when you search for where
                  virNetDevTapCreateInBridgePort.<br>
                </div>
              </blockquote>
            </div>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
    <blockquote
cite="mid:CAA=3Oqkuk_tv60XBz+QO73uQ8ssCM9bNbTdg5RjJ-ciRTjCM_g@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">
        <div>Wouldn't it be simpler to do port removal just inside the
          networkReleaseActualDevice() function if this is interface
          that was attached to an OVS bridge? Would this make any
          problems to the overall design? The code seems to work...</div>
      </div>
    </blockquote>
    <br>
    No. networkAllocateActualDevice and networkReleaseActualDevice are
    only intended to acquire network-specific configuration/resourced
    for the guest from a <network> object, and release it later;
    they shouldn't be used as a clearing house for general guest
    interface setup/teardown.<br>
    <br>
    Looking through all this code I've been thinking it might be nice to
    create such "clearing house" setup/teardown functions, but what I've
    seen so far is that there are places where only some of the full
    list of functions are called (don't know if that means missing
    functionality / bugs, or genuinely different situations that require
    a different set of actions), and am too busy now with other projects
    to investigate further.<br>
    <br>
    In the meantime, if you can try to make your additions in the (at
    least) two places as similar as possible, that will make it easier
    for us to later go in and create functions that do complete
    interface setup/teardown.<br>
    <br>
    <br>
  </body>
</html>