[PATCH] network: use IpInterface instead of Interface (#1058906, #1029214)
Radek Vykydal
rvykydal at redhat.com
Mon May 26 12:35:27 UTC 2014
For example for GSM modems we don't care about control interface
(eg ttyUSB0) but about data interface (eg ppp0).
---
pyanaconda/nm.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pyanaconda/nm.py b/pyanaconda/nm.py
index 40058f3..b6cade6 100644
--- a/pyanaconda/nm.py
+++ b/pyanaconda/nm.py
@@ -150,7 +150,7 @@ def nm_devices():
device_type = _get_property(device, "DeviceType", ".Device")
if device_type not in supported_device_types:
continue
- iface = _get_property(device, "Interface", ".Device")
+ iface = _get_property(device, "IpInterface", ".Device")
interfaces.append(iface)
return interfaces
@@ -174,7 +174,7 @@ def nm_activated_devices():
continue
devices = _get_property(ac, "Devices", ".Connection.Active")
for device in devices:
- iface = _get_property(device, "Interface", ".Device")
+ iface = _get_property(device, "IpInterface", ".Device")
interfaces.append(iface)
return interfaces
@@ -498,7 +498,7 @@ def nm_device_slaves(name):
slave_ifaces = []
for slave in slaves:
- iface = _get_property(slave, "Interface", ".Device")
+ iface = _get_property(slave, "IpInterface", ".Device")
slave_ifaces.append(iface)
return slave_ifaces
--
1.9.0
More information about the anaconda-patches
mailing list