[PATCH 3/6] Add DCB option to text mode FCoE setup (#513011)

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

 



---
 textw/partition_text.py |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/textw/partition_text.py b/textw/partition_text.py
index 0024505..1d16fa9 100644
--- a/textw/partition_text.py
+++ b/textw/partition_text.py
@@ -222,7 +222,8 @@ class PartitionTypeWindow:
         (button, entries) = EntryWindow(screen,
                                         _("Add FCoE SAN"),
                                         _("Enter the device name for the NIC which is connected to the FCoE SAN. For example \"eth0\"."),
-                                        prompts = [ _("NIC device name") ] )
+                                        prompts = [ _("NIC device name"),
+                                                    _("Use DCB (Yes/No)") ] )
         if button == TEXT_CANCEL_CHECK:
             return INSTALL_BACK
 
@@ -232,7 +233,15 @@ class PartitionTypeWindow:
                                _("%s is not a valid NIC device name.") % nic)
             return INSTALL_BACK
 
-        self.anaconda.id.storage.fcoe.addSan(nic)
+        dcb = entries[1].strip().lower()
+        if dcb != "yes" and dcb != "no":
+            ButtonChoiceWindow(screen, _("Error"),
+                               _("DCB value must be either yes or no."))
+            return INSTALL_BACK
+
+        dcb = dcb == "yes"
+
+        self.anaconda.id.storage.fcoe.addSan(nic=nic, dcb=dcb)
 
         return INSTALL_OK
 
-- 
1.6.5.2

_______________________________________________
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