mirror of https://gitee.com/openkylin/libvirt.git
network: Fix printing XML 'delay' attribute
When specifying bridge delay via network XML define, we were looking for the 'delay' attribute, but would dump the value as 'forwardDelay'. Have the output match the expected input (and schema).
This commit is contained in:
parent
11a36d956c
commit
3b13aa3db3
|
@ -632,7 +632,7 @@ char *virNetworkDefFormat(virConnectPtr conn,
|
|||
virBufferAddLit(&buf, " <bridge");
|
||||
if (def->bridge)
|
||||
virBufferEscapeString(&buf, " name='%s'", def->bridge);
|
||||
virBufferVSprintf(&buf, " stp='%s' forwardDelay='%ld' />\n",
|
||||
virBufferVSprintf(&buf, " stp='%s' delay='%ld' />\n",
|
||||
def->stp ? "on" : "off",
|
||||
def->delay);
|
||||
|
||||
|
|
Loading…
Reference in New Issue