提交 ca4553d0 编写于 作者: M Mark McLoughlin

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.
上级 f9f7aeb4
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> Thu Feb 15 15:56:32 IST 2007 Mark McLoughlin <markmc@redhat.com>
* qemud/conf.[ch], qemud/dispatch.c, qemud/internal.h, * qemud/conf.[ch], qemud/dispatch.c, qemud/internal.h,
......
...@@ -1957,7 +1957,8 @@ char *qemudGenerateNetworkXML(struct qemud_server *server, ...@@ -1957,7 +1957,8 @@ char *qemudGenerateNetworkXML(struct qemud_server *server,
uuid[12], uuid[13], uuid[14], uuid[15]) < 0) uuid[12], uuid[13], uuid[14], uuid[15]) < 0)
goto no_memory; 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->bridge,
def->disableSTP ? "off" : "on", def->disableSTP ? "off" : "on",
def->forwardDelay) < 0) def->forwardDelay) < 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册