summaryrefslogtreecommitdiffstats
path: root/storage/devicetree.py
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2009-07-02 22:01:01 +0200
committerHans de Goede <hdegoede@redhat.com>2009-07-02 22:05:41 +0200
commit52dc1eadb6362b667e6162d3e4ed1486ad126e8d (patch)
treeae62726899784228ecd1386974a3384fa3febff1 /storage/devicetree.py
parent7a7ce782b86dc13633dcf3715a1f65f832145c57 (diff)
downloadanaconda-52dc1eadb6362b667e6162d3e4ed1486ad126e8d.tar.gz
anaconda-52dc1eadb6362b667e6162d3e4ed1486ad126e8d.tar.xz
anaconda-52dc1eadb6362b667e6162d3e4ed1486ad126e8d.zip
Add FCoE disks to the devicetree with a type of FcoeDiskDevice
Add FCoE disks to the devicetree with a type of FcoeDiskDevice instead of DiskDevice
Diffstat (limited to 'storage/devicetree.py')
-rw-r--r--storage/devicetree.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/storage/devicetree.py b/storage/devicetree.py
index 9ffe726db..08846f337 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1152,6 +1152,11 @@ class DeviceTree(object):
kwargs["iscsi_address"] = udev_device_get_iscsi_address(info)
kwargs["iscsi_port"] = udev_device_get_iscsi_port(info)
log.debug("%s is an iscsi disk" % name)
+ elif udev_device_is_fcoe(info):
+ diskType = FcoeDiskDevice
+ kwargs["nic"] = udev_device_get_fcoe_nic(info)
+ kwargs["identifier"] = udev_device_get_fcoe_identifier(info)
+ log.debug("%s is an fcoe disk" % name)
else:
diskType = DiskDevice
log.debug("%s is a disk" % name)