Re: [PATCH 6/8] Fix testing for whether a device requires networking.

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

 



On Wed, 2009-03-04 at 10:39 -0500, Chris Lumens wrote:
> There's no more isNetdev method, so we'll have to use the type of the object
> as a test instead.

This will need some work. NetworkDevice is meant to represent a NIC.
Now, looking at this, maybe we should create NetworkStorageDevice and
have NFS, iSCSI, FCoE all subclass it.

> ---
>  network.py |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/network.py b/network.py
> index 3531de9..4a2eca9 100644
> --- a/network.py
> +++ b/network.py
> @@ -585,8 +585,9 @@ class Network:
>              # tell NM not to touch the interface(s) actually used for /, but we
>              # have no logic to determine that
>              if anaconda is not None:
> +                import storage
>                  rootdev = anaconda.id.storage.fsset.rootDevice
> -                if rootdev.isNetdev:
> +                if isinstance(rootdev, storage.devices.NetworkDevice):
>                      f.write("NM_CONTROLLED=no\n")
>  
>              f.close()

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

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux