Merge pull request #3698 from murrant/timos

Consolidate timos sysObjectId checks
This commit is contained in:
Neil Lathwood 2016-06-22 09:51:36 +01:00 committed by GitHub
commit c8d9abe448

View File

@ -10,44 +10,17 @@ if (!$os) {
$os = 'aos';
}
}
if (strpos($sysObjectId, '.1.3.6.1.4.1.6486.801') !== false) {
elseif (strpos($sysObjectId, '.1.3.6.1.4.1.6486.801') !== false) {
$os = 'aos';
}
if (strpos($sysObjectId, '.1.3.6.1.4.1.6527.1.3') !== false) {
$os = 'timos';
}
// FIXME: make these less specific.
// TiMOS-B-6.1.R14 both/hops ALCATEL ESS 7450
if (strpos($sysObjectId, '.1.3.6.1.4.1.6527.1.6.1') !== false) {
$os = 'timos';
}
// TiMOS-B-2.0.R3 both/mpc ALCATEL SAS-M 7210
if (strpos($sysObjectId, '.1.3.6.1.4.1.6527.6.2.1.2.2.1') !== false) {
$os = 'timos';
}
// TiMOS-B-6.1.R14 both/hops ALCATEL SR 7710
if (strpos($sysObjectId, '.1.3.6.1.4.1.6527.1.9.1') !== false) {
$os = 'timos';
}
// TiMOS-B-6.0.R2 both/hops ALCATEL-LUCENT SAR 7705
if (strpos($sysObjectId, '.1.3.6.1.4.1.6527.6.1.1.2.1') !== false) {
$os = 'timos';
}
// TiMOS-B-6.1.R7 both/hops ALCATEL-LUCENT SAR 7705
if (strpos($sysObjectId, '.1.3.6.1.4.1.6527.6.1.1.2.2') !== false) {
$os = 'timos';
}
// TiMOS-B-7.0.R5 both/hops ALCATEL SAR 7705
if (strpos($sysObjectId, '.1.3.6.1.4.1.6527.6.1.1.2.5') !== false) {
$os = 'timos';
}
// TiMOS-B-6.0.R2 both/hops ALCATEL-LUCENT SAR 7705
if (strpos($sysObjectId, '.1.3.6.1.4.1.6527.6.1.1.2.6') !== false) {
elseif (
strpos($sysObjectId, '.1.3.6.1.4.1.6527.1.3') !== false
|| strpos($sysObjectId, '.1.3.6.1.4.1.6527.6.2.1.2.2.') !== false // TiMOS-B-2.0.R3 both/mpc ALCATEL SAS-M 7210
|| strpos($sysObjectId, '.1.3.6.1.4.1.6527.1.6.1') !== false // TiMOS-B-6.1.R14 both/hops ALCATEL ESS 7450
|| strpos($sysObjectId, '.1.3.6.1.4.1.6527.6.1.1.2.') !== false // TiMOS-B-6.0.R2 both/hops ALCATEL-LUCENT SAR 7705
|| strpos($sysObjectId, '.1.3.6.1.4.1.6527.1.9.1') !== false // TiMOS-B-6.1.R14 both/hops ALCATEL SR 7710
|| strpos($sysObjectId, '.1.3.6.1.4.1.6527.1.15.') !== false // TiMOS-C-12.0.R16 cpm/hops64 ALCATEL XRS 7950
) {
$os = 'timos';
}
}//end if