FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 04-05-2011, 11:11 AM
Radek Vykydal
 
Default Use correct interface to obtain HwAddress property (#693614)

Resolves: rhbz#693614
---
isys/isys.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/isys/isys.py b/isys/isys.py
index 84ed857..1ecd0f4 100755
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -48,6 +48,7 @@ NM_MANAGER_IFACE = "org.freedesktop.NetworkManager"
NM_ACTIVE_CONNECTION_IFACE = "org.freedesktop.NetworkManager.Connection.Act ive"
NM_CONNECTION_IFACE = "org.freedesktop.NetworkManagerSettings.Connection "
NM_DEVICE_IFACE = "org.freedesktop.NetworkManager.Device"
+NM_DEVICE_IFACE_WIRED = "org.freedesktop.NetworkManager.Device.Wired"
NM_IP4CONFIG_IFACE = "org.freedesktop.NetworkManager.IP4Config"
NM_IP6CONFIG_IFACE = "org.freedesktop.NetworkManager.IP6Config"

@@ -438,7 +439,7 @@ def getMacAddress(dev):

device_macaddr = None
try:
- device_macaddr = device_props_iface.Get(NM_DEVICE_IFACE, "HwAddress").upper()
+ device_macaddr = device_props_iface.Get(NM_DEVICE_IFACE_WIRED, "HwAddress").upper()
except dbus.exceptions.DBusException as e:
if e.get_dbus_name() != 'org.freedesktop.DBus.Error.InvalidArgs':
raise
--
1.7.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 04-05-2011, 11:23 AM
Radek Vykydal
 
Default Use correct interface to obtain HwAddress property (#693614)

On 04/05/2011 01:11 PM, Radek Vykydal wrote:

Resolves: rhbz#693614
---
isys/isys.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/isys/isys.py b/isys/isys.py
index 84ed857..1ecd0f4 100755
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -48,6 +48,7 @@ NM_MANAGER_IFACE = "org.freedesktop.NetworkManager"
NM_ACTIVE_CONNECTION_IFACE = "org.freedesktop.NetworkManager.Connection.Act ive"
NM_CONNECTION_IFACE = "org.freedesktop.NetworkManagerSettings.Connection "
NM_DEVICE_IFACE = "org.freedesktop.NetworkManager.Device"
+NM_DEVICE_IFACE_WIRED = "org.freedesktop.NetworkManager.Device.Wired"


Just one cosmetic change, more consistent name is

NM_DEVICE_WIRED_IFACE

Radek

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 04-05-2011, 11:58 AM
Martin Gracik
 
Default Use correct interface to obtain HwAddress property (#693614)

looks good

--

Martin Gracik

----- Original Message -----
> On 04/05/2011 01:11 PM, Radek Vykydal wrote:
> > Resolves: rhbz#693614
> > ---
> > isys/isys.py | 3 ++-
> > 1 files changed, 2 insertions(+), 1 deletions(-)
> >
> > diff --git a/isys/isys.py b/isys/isys.py
> > index 84ed857..1ecd0f4 100755
> > --- a/isys/isys.py
> > +++ b/isys/isys.py
> > @@ -48,6 +48,7 @@ NM_MANAGER_IFACE =
> > "org.freedesktop.NetworkManager"
> > NM_ACTIVE_CONNECTION_IFACE =
> > "org.freedesktop.NetworkManager.Connection.Act ive"
> > NM_CONNECTION_IFACE =
> > "org.freedesktop.NetworkManagerSettings.Connection "
> > NM_DEVICE_IFACE = "org.freedesktop.NetworkManager.Device"
> > +NM_DEVICE_IFACE_WIRED =
> > "org.freedesktop.NetworkManager.Device.Wired"
>
> Just one cosmetic change, more consistent name is
>
> NM_DEVICE_WIRED_IFACE
>
> Radek
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@redhat.com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 11:45 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org