-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:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user