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.
This commit is contained in:
Mark McLoughlin 2007-02-15 16:01:09 +00:00
parent f9f7aeb4b7
commit ca4553d0e7
2 changed files with 7 additions and 1 deletions

View File

@ -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,

View 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)