-bug 3031635, (really a feature to allow shortcut port names on another switch syntax)

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6814 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2010-07-21 14:48:47 +00:00
parent f7832796f2
commit a64c7d0a60

View File

@ -51,6 +51,15 @@ OID, and have the switch table port value match exactly the format suggested by
return 1;
}
}
# dell 6248 convention
if ( $namepersnmp =~ /^Unit \d Port (\d+)$/ ) {
if ( $1 eq $namepercfg ) {
return 1;
}
}
unless ($namepersnmp =~ /[^0123456789]$namepercfg\z/) {
#Most common case, won't match at all
return 0;