]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
network: Fix printing XML 'delay' attribute
authorCole Robinson <crobinso@redhat.com>
Tue, 13 Oct 2009 15:31:27 +0000 (11:31 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 13 Oct 2009 15:31:27 +0000 (11:31 -0400)
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).

src/conf/network_conf.c

index 14eb5437beb9ed4b94c142c6c7081fe68dd16c2c..40f5fdd08190803ade2f0483af3d84e99695f110 100644 (file)
@@ -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);