Cisco SLA jitter tag (#11983)

* Update cisco-sla.inc.php

* Update cisco-sla.inc.php
This commit is contained in:
pobradovic08
2020-07-30 22:38:52 +02:00
committed by GitHub
parent 52e61490f0
commit cb0686d0f3

View File

@@ -65,7 +65,12 @@ if (Config::get('enable_sla') && $device['os_group'] == 'cisco') {
break;
case 'jitter':
$data['tag'] = $sla_config['rttMonEchoAdminCodecType'] ." (". preg_replace('/milliseconds/', 'ms', $sla_config['rttMonEchoAdminCodecInterval']) .")";
if ($sla_config['rttMonEchoAdminCodecType'] != 'notApplicable') {
$codec_info = " (" . $sla_config['rttMonEchoAdminCodecType'] . " @ " . preg_replace('/milliseconds/', 'ms', $sla_config['rttMonEchoAdminCodecInterval']) . ")";
} else {
$codec_info = '';
}
$data['tag'] = IP::fromHexString($sla_config['rttMonEchoAdminTargetAddress'], true) . ":" . $sla_config['rttMonEchoAdminTargetPort'] . $codec_info;
break;
}//end switch
}//end if