Re: [libvirt] [PATCH 07/10] network: Fix reading 'forwardDelay' attribute.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/13/2009 10:54 AM, Daniel Veillard wrote:
> On Tue, Oct 13, 2009 at 02:27:09PM +0100, Daniel P. Berrange wrote:
>> On Mon, Oct 12, 2009 at 10:46:51AM -0400, Cole Robinson wrote:
>>> When reading network XML, we were looking for a 'delay' attribute, but this
>>> value was being dumped as 'forwardDelay'. Support reading both names on
>>> input, but continue to only dump 'forwardDelay'
>>
>> Rather a no-win situation, but the schema still says 'delay', so I'd
>> be more inclined to just fix the XML printing code to s/forwardDelay/delay/
>> and leave the parsing as is.
> 
>   Agreed, it tends to prove people were either not using the option or
> not dumping the XML to reimport it. I would stick to the original
> syntax.
>   This should turn into a trivial fix, and I'm fine with pushing it now.
> 
> Daniel
> 

Okay, I've pushed this change:

diff --git a/src/conf/network_conf.c b/src/conf/network_conf.c
index 14eb543..40f5fdd 100644
--- a/src/conf/network_conf.c
+++ b/src/conf/network_conf.c
@@ -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);

Thanks,
Cole

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]