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

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

 



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

[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