Datera / rtslib

The Linux SCSI Target API
http://linux-iscsi.org
Apache License 2.0
19 stars 17 forks source link

Too strong filter for WWN #19

Open Bloodoff opened 7 years ago

Bloodoff commented 7 years ago

In file utils.py deefined regex for validate WWNs 'naa': lambda wwn: re.match("naa.[125][0-9a-fA-F]{15}$", wwn)

I have quad port QLE2564 adapter with portnames: systool -c fc_host -v | grep port_name port_name = "0x15b0024ffaa536f" port_name = "0x115b0024ffaa536f" port_name = "0x215b0024ffaa536f" port_name = "0x315b0024ffaa536f"

Two of this list can't pass regexp, and can not be used as FC target