Re: [PATCH 2/2] Add kickstart fcoe command

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

 



Hi

On 07/06/2009 04:21 PM, Chris Lumens wrote:
diff --git a/kickstart.py b/kickstart.py
index 474ecec..64eed2a 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -259,6 +259,15 @@ class ClearPart(commands.clearpart.FC3_ClearPart):

          return retval

+class Fcoe(commands.fcoe.F12_Fcoe):
+    def parse(self, args):
+        retval = commands.fcoe.F12_Fcoe.parse(self, args)
+
+        for fc in self.fcoe:
+            self.handler.id.fcoe.addSan(nic=self.nic)
+
+        return retval
+
  class Firewall(commands.firewall.F10_Firewall):
      def parse(self, args):
          retval = commands.firewall.F10_Firewall.parse(self, args)
@@ -984,6 +993,7 @@ commandMap = {
          "deviceprobe": commands.deviceprobe.FC3_DeviceProbe,
          "dmraid": DmRaid,
          "driverdisk": commands.driverdisk.FC3_DriverDisk,
+        "fcoe": Fcoe,
          "firewall": Firewall,
          "firstboot": Firstboot,
          "graphical": commands.displaymode.FC3_DisplayMode,

This looks fine.  I also like to increase the version of pykickstart
that's required when I change kickstart.py in this way, too.  In this
case you can just bump the minor version by one.


Thanks, I'll do that when I commit this.

Regards,

Hans

_______________________________________________
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