[PATCH] network: use IpInterface instead of Interface (#1058906, #1029214)
Vratislav Podzimek
vpodzime at redhat.com
Mon May 26 15:00:10 UTC 2014
On Mon, 2014-05-26 at 14:35 +0200, Radek Vykydal wrote:
> 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
ACK.
--
Vratislav Podzimek
Anaconda Rider | RHCE | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list