[racktables-users] Re: L2 address for HBA (WWPN)
- From: Killsystem <killsystem@xxxxxxxxxxxxxxxx>
- To: <racktables-users@xxxxxxxxxxxxx>
- Date: Mon, 13 Jul 2009 13:09:35 +0000
Sorry but I forgot to change the l2 search in the interface.php
Corrected this, see my new attachment.
gretz Killsystem
On Mon, 13 Jul 2009 12:56:21 +0000, Killsystem
<killsystem@xxxxxxxxxxxxxxxx>
wrote:
> 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)):
diff racktables/inc/interface.php trunk/inc/interface.php
2870,2872d2877
< preg_match (RE_L2_WWN_SOLID, $terms) or
< preg_match (RE_L2_WWN_COLON, $terms) or
< preg_match (RE_L2_WWN_HYPHEN, $terms) or
2880a2886
> $terms = substr ($terms, -12);
Other related posts: