* qemud/bridge.c: don't output bridge parameters if they
are the default.
+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,
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)