From: Nelis, W. <Wim...@nl...> - 2010-12-21 07:59:16
|
Hello, the syntax check of the WORST transform failed, while the syntax looks good: Phy2StatusE : WORST : {endptPhy2Speed},{endptPhy2Duplex} The patch below changes the syntax check to become identical to the syntax check of a BEST transform. Once applied the line above will not result in an error message any more. However, it is not clear to me what is wrong with the original RE to check the syntax. Index: modules/dm_templates.pm =================================================================== --- modules/dm_templates.pm (revision 10) +++ modules/dm_templates.pm (revision 11) @@ -653,7 +653,7 @@ }; $func_type eq 'worst' and do { - $temp =~ s/^\s*\{\s*\S+?\s*\}|\s*,\s*//g; + $temp =~ s/\s*\{\s*\S+?\s*\}|\s*,\s*//g; do_log("WORST transform uses only comma-delimited oids at " . "$trans_file, line $l_num", 0) and next LINE if $temp ne ''; Wim Nelis. ******************************************************************************************************* The NLR disclaimer (http://www.nlr.nl/emaildisclaimer) is valid for NLR e-mail messages. ******************************************************************************************************* |