]> xenbits.xensource.com Git - libvirt.git/commitdiff
Thu Feb 15 16:00:05 IST 2007 Mark McLoughlin <markmc@redhat.com>
authorMark McLoughlin <markmc@redhat.com>
Thu, 15 Feb 2007 16:01:09 +0000 (16:01 +0000)
committerMark McLoughlin <markmc@redhat.com>
Thu, 15 Feb 2007 16:01:09 +0000 (16:01 +0000)
        * qemud/bridge.c: don't output bridge parameters if they
        are the default.

ChangeLog
qemud/conf.c

index 9c34231f1d63414083b676e9271c05a721610342..b0aa9d566ebacdd740eae6c637db3d6c06833666 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Feb 15 16:00:05 IST 2007 Mark McLoughlin <markmc@redhat.com>
+
+       * qemud/bridge.c: don't output bridge parameters if they
+       are the default.
+       
 Thu Feb 15 15:56:32 IST 2007 Mark McLoughlin <markmc@redhat.com>
 
        * qemud/conf.[ch], qemud/dispatch.c, qemud/internal.h,
index 8838e43309e13a8380cb388e6fd7f0a95eaa779f..0bc3654c9d375480095a169db1e74ac641877f80 100644 (file)
@@ -1957,7 +1957,8 @@ char *qemudGenerateNetworkXML(struct qemud_server *server,
                           uuid[12], uuid[13], uuid[14], uuid[15]) < 0)
         goto no_memory;
 
-    if (qemudBufferPrintf(&buf, "  <bridge name='%s' stp='%s' delay='%d' />\n",
+    if ((def->bridge != '\0' || def->disableSTP || def->forwardDelay) &&
+        qemudBufferPrintf(&buf, "  <bridge name='%s' stp='%s' delay='%d' />\n",
                           def->bridge,
                           def->disableSTP ? "off" : "on",
                           def->forwardDelay) < 0)