[racktables-users] L2 address for HBA (WWPN)
- From: Killsystem <killsystem@xxxxxxxxxxxxxxxx>
- To: <racktables-users@xxxxxxxxxxxxx>
- Date: Mon, 13 Jul 2009 12:56:21 +0000
Hello Denis,
I tried to add WWPN addresses to my hbas in the L2 field but got an error
message.
I attached the diff against the 0.17.1 that you can add WWPN in the
following formats:
00:00:00:00:00:00:00:00
0000000000000000
00-00-00-00-00-00-00-00
Would be nice to see this change in the next release.
gretz Killsystem
diff racktables/inc/config.php trunk/inc/config.php
23,25d22
< define ('RE_L2_WWN_COLON',
'/^[0-9a-f][0-9a-f]?:[0-9a-f][0-9a-f]?:[0-9a-f][0-9a-f]?:[0-9a-f][0-9a-f]?:[0-9a-f][0-9a-f]?:[0-9a-f][0-9a-f]?:[0-9a-f][0-9a-f]?:[0-9a-f][0-9a-f]$/i');
< define ('RE_L2_WWN_HYPHEN',
'/^[0-9a-f][0-9a-f]-[0-9a-f][0-9a-f]-[0-9a-f][0-9a-f]-[0-9a-f][0-9a-f]-[0-9a-f][0-9a-f]-[0-9a-f][0-9a-f]-[0-9a-f][0-9a-f]-[0-9a-f][0-9a-f]$/i');
< define ('RE_L2_WWN_SOLID',
'/^[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]$/i');
diff racktables/inc/functions.php trunk/inc/functions.php
406c406
< case ($string == '' or preg_match (RE_L2_SOLID, $string) or
preg_match (RE_L2_WWN_SOLID, $string)):
---
> case ($string == '' or preg_match (RE_L2_SOLID, $string)):
408c408
< case (preg_match (RE_L2_IFCFG, $string) or preg_match
(RE_L2_WWN_COLON, $string)):
---
> case (preg_match (RE_L2_IFCFG, $string)):
419c419
< case (preg_match (RE_L2_IPCFG, $string) or preg_match
(RE_L2_WWN_HYPHEN, $string)):
---
> case (preg_match (RE_L2_IPCFG, $string)):
Other related posts: