Update OS version parsing for IOS XE Denali and Everset (#7073)

This commit is contained in:
network-guy
2017-07-24 02:33:28 -05:00
committed by Neil Lathwood
parent 66008a0fd5
commit 890164c737

View File

@ -1,6 +1,6 @@
<?php
if (preg_match('/^Cisco IOS Software, .+? Software(\, )?([\s\w\d]+)? \([^\-]+-([\w\d]+)-\w\), Version ([^,]+)/', $poll_device['sysDescr'], $regexp_result)) {
if (preg_match('/^Cisco IOS Software.*?, .+? Software(\, )?([\s\w\d]+)? \([^\-]+-([\w\d]+)-\w\), Version ([^,]+)/', $poll_device['sysDescr'], $regexp_result)) {
$features = $regexp_result[3];
$version = $regexp_result[4];
$hardware = $regexp_result[2];