[libvirt] [PATCH] Fix a mismatch attribute name

From libvirt.org we know this attribute named:
interface_mac MAC address of the network interface, not unique Signed-off-by: Luyao Huang <lhuang@redhat.com> --- src/access/viraccessdriverpolkit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/access/viraccessdriverpolkit.c b/src/access/viraccessdriverpolkit.c index 3136be7..0e07053 100644 --- a/src/access/viraccessdriverpolkit.c +++ b/src/access/viraccessdriverpolkit.c @@ -206,7 +206,7 @@ virAccessDriverPolkitCheckInterface(virAccessManagerPtr manager, const char *attrs[] = { "connect_driver", driverName, "interface_name", iface->name, - "interface_macaddr", iface->mac, + "interface_mac", iface->mac, NULL, }; -- 1.8.3.1

On 11/07/2014 09:24 AM, Luyao Huang wrote:
From libvirt.org we know this attribute named:
interface_mac MAC address of the network interface, not unique
Shouldn't we instead be fixing the docs to match the code? Changing the code now may break existing implementations that have used the name in the current code.
Signed-off-by: Luyao Huang <lhuang@redhat.com> --- src/access/viraccessdriverpolkit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/access/viraccessdriverpolkit.c b/src/access/viraccessdriverpolkit.c index 3136be7..0e07053 100644 --- a/src/access/viraccessdriverpolkit.c +++ b/src/access/viraccessdriverpolkit.c @@ -206,7 +206,7 @@ virAccessDriverPolkitCheckInterface(virAccessManagerPtr manager, const char *attrs[] = { "connect_driver", driverName, "interface_name", iface->name, - "interface_macaddr", iface->mac, + "interface_mac", iface->mac, NULL, };
-- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

From libvirt.org we know this attribute named:
interface_mac MAC address of the network interface, not unique Shouldn't we instead be fixing the docs to match the code? Changing the code now may break existing implementations that have used the name in
On 11/07/2014 09:24 AM, Luyao Huang wrote: the current code. yes, i agree with you, i give a v2 patch, but i don't know how to change
On 11/07/2014 05:15 PM, Eric Blake wrote: the doc in http://libvirt.org. https://www.redhat.com/archives/libvir-list/2014-November/msg00209.html And this patch is for the bug: https://bugzilla.redhat.com/show_bug.cgi?id=1161358
Signed-off-by: Luyao Huang <lhuang@redhat.com> --- src/access/viraccessdriverpolkit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/access/viraccessdriverpolkit.c b/src/access/viraccessdriverpolkit.c index 3136be7..0e07053 100644 --- a/src/access/viraccessdriverpolkit.c +++ b/src/access/viraccessdriverpolkit.c @@ -206,7 +206,7 @@ virAccessDriverPolkitCheckInterface(virAccessManagerPtr manager, const char *attrs[] = { "connect_driver", driverName, "interface_name", iface->name, - "interface_macaddr", iface->mac, + "interface_mac", iface->mac, NULL, };

On 11/07/2014 10:37 AM, lhuang wrote:
From libvirt.org we know this attribute named:
interface_mac MAC address of the network interface, not unique Shouldn't we instead be fixing the docs to match the code? Changing the code now may break existing implementations that have used the name in
On 11/07/2014 09:24 AM, Luyao Huang wrote: the current code. yes, i agree with you, i give a v2 patch, but i don't know how to change
On 11/07/2014 05:15 PM, Eric Blake wrote: the doc in http://libvirt.org.
libvirt.org autogenerates from the latest libvirt.git, at least once an hour.
https://www.redhat.com/archives/libvir-list/2014-November/msg00209.html
So once that message is committed, the web page will auto-update.
And this patch is for the bug:
Then mention that in the commit message :) -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

On 11/07/2014 05:45 PM, Eric Blake wrote:
From libvirt.org we know this attribute named:
interface_mac MAC address of the network interface, not unique Shouldn't we instead be fixing the docs to match the code? Changing the code now may break existing implementations that have used the name in
On 11/07/2014 09:24 AM, Luyao Huang wrote: the current code. yes, i agree with you, i give a v2 patch, but i don't know how to change
On 11/07/2014 05:15 PM, Eric Blake wrote: the doc in http://libvirt.org.
On 11/07/2014 10:37 AM, lhuang wrote: libvirt.org autogenerates from the latest libvirt.git, at least once an hour.
https://www.redhat.com/archives/libvir-list/2014-November/msg00209.html So once that message is committed, the web page will auto-update. Oh, I see, thanks And this patch is for the bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1161358 Then mention that in the commit message :)
Okay and thanks for push the patch :)
participants (3)
-
Eric Blake
-
lhuang
-
Luyao Huang