-3com naming convention fuzziness on switch search (from Aaron Knister)

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2348 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-10-14 22:56:43 +00:00
parent 2ed71b740a
commit 1d8e565f6f

View File

@ -50,6 +50,13 @@ OID, and have the switch table port value match exactly the format suggested by
#Most common case, won't match at all
return 0;
}
#3com convention, contributed by Aaron Knister
if ( $namepersnmp =~ /^RMON Port (0?)(\d+) on unit \d+/ ) {
if ( $2 =~ $namepercfg ) {
return 1;
}
}
#stop contemplating vlan, Nu, and console interfaces
if (($namepersnmp =~ /vl/i) or ($namepersnmp =~ /Nu/) or ($namepersnmp =~ /onsole/)) {
return 0;