From 3b13aa3db37bf5a692bccfa015a01999043e797b Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 13 Oct 2009 11:31:27 -0400 Subject: [PATCH] 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). --- src/conf/network_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- GitLab