Updated regex for IES os (#10899)

Forgot to update this with the previous PR, this goes along with updated discovery in PR #10897
This commit is contained in:
djamp42
2019-12-02 16:44:08 -05:00
committed by PipoCanaja
parent c2ec8e6422
commit 85addc5933

View File

@@ -2,5 +2,5 @@
$version = trim(snmp_get($device, 'accessSwitchFWVersion.0', '-OQv', 'ZYXEL-AS-MIB'), '"');
preg_match('/IES-(\d)*/', $device['sysDescr'], $matches);
preg_match('/IES(\d)*/', $device['sysDescr'], $matches);
$hardware = $matches[0];