diff options
author | Hans de Goede <hdegoede@redhat.com> | 2009-11-24 20:33:47 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2009-11-26 12:21:15 +0100 |
commit | a39d529e8466a233359cc9995fa410f71decaebc (patch) | |
tree | 650c4044c0f5699ceb481a0f9372a7983e4f74ca | |
parent | c7c6177079e7b5071effa8b9617148f4063c35e4 (diff) | |
download | anaconda-a39d529e8466a233359cc9995fa410f71decaebc.tar.gz anaconda-a39d529e8466a233359cc9995fa410f71decaebc.tar.xz anaconda-a39d529e8466a233359cc9995fa410f71decaebc.zip |
Add DCB option to text mode FCoE setup (#513011)
-rw-r--r-- | 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 0024505b7..4eb77a43b 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").lower() and dcb != _("no").lower(): + ButtonChoiceWindow(screen, _("Error"), + _("DCB value must be either yes or no.")) + return INSTALL_BACK + + dcb = dcb == _("yes").lower() + + self.anaconda.id.storage.fcoe.addSan(nic=nic, dcb=dcb) return INSTALL_OK |