From: Cole Robinson Date: Tue, 13 Oct 2009 15:31:27 +0000 (-0400) Subject: network: Fix printing XML 'delay' attribute X-Git-Tag: v0.7.2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b13aa3db37bf5a692bccfa015a01999043e797b;p=thirdparty%2Flibvirt.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). --- diff --git a/src/conf/network_conf.c b/src/conf/network_conf.c index 14eb5437be..40f5fdd081 100644 --- a/src/conf/network_conf.c +++ b/src/conf/network_conf.c @@ -632,7 +632,7 @@ char *virNetworkDefFormat(virConnectPtr conn, virBufferAddLit(&buf, " 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);