[PATCH blivet rhel7-branch] fcoe: add fcoe=<NIC>:<EDB> to boot options for nics added manually (#1040215)

Radek Vykydal rvykydal at redhat.com
Wed Jan 22 09:07:10 UTC 2014


Related: rhbz#1040215
---
 blivet/devices.py | 6 ++++--
 blivet/fcoe.py    | 1 +
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/blivet/devices.py b/blivet/devices.py
index f006152..ccbb857 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -4081,8 +4081,10 @@ class FcoeDiskDevice(DiskDevice, NetworkStorageDevice):
         else:
             dcbOpt = "nodcb"
 
-        return set(["fcoe=edd:%s" % dcbOpt])
-
+        if nic in fcoe().added_nics:
+            return set(["fcoe=%s:%s" % (nic, dcbOpt)])
+        else:
+            return set(["fcoe=edd:%s" % dcbOpt])
 
 class OpticalDevice(StorageDevice):
     """ An optical drive, eg: cdrom, dvd+r, &c.
diff --git a/blivet/fcoe.py b/blivet/fcoe.py
index 38fea91..e7e8fef 100644
--- a/blivet/fcoe.py
+++ b/blivet/fcoe.py
@@ -58,6 +58,7 @@ class fcoe(object):
         self.started = False
         self.lldpadStarted = False
         self.nics = []
+        self.added_nics = []
 
     # So that users can write fcoe() to get the singleton instance
     def __call__(self):
-- 
1.7.11.7



More information about the anaconda-patches mailing list