Re: [PATCH] Bring up network interface before trying to use it for FCoE

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

 



Looks ok.

On Mon, Oct 05, 2009 at 05:00:30PM +0200, Hans de Goede wrote:
> Note this patch deliberately does not use NetworkManager, all we need for FCoE
> is for the OSI layers 1 (PHY) and 2 (MAC) to be brought up.
> ---
>  storage/fcoe.py |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/storage/fcoe.py b/storage/fcoe.py
> index 1ea5e9d..ca604cd 100644
> --- a/storage/fcoe.py
> +++ b/storage/fcoe.py
> @@ -75,6 +75,10 @@ class fcoe(object):
>  
>          log.info("Activating FCoE SAN attached to %s" % nic)
>  
> +        iutil.execWithRedirect("ip", [ "link", "set", nic, "up" ],
> +                               stdout = "/dev/tty5", stderr="/dev/tty5",
> +                               searchPath = 1)
> +
>          f = open("/sys/module/fcoe/parameters/create", "w")
>          f.write(nic)
>          f.close()
> -- 
> 1.6.5.rc2
> 
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

-- 
Joel Andres Granados
Brno, Czech Republic, Red Hat.

Attachment: pgpXCTalOF0I9.pgp
Description: PGP signature

_______________________________________________
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