mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Timos sap dot1q graphing fix (#13654)
* Added wireless MSE * dot1q sap graph fix * Fix removed files * fix * Fixed style * Fixed style * Fixed style * Removed vscode workspace file * Clarification
This commit is contained in:
@ -661,6 +661,13 @@ class Timos extends OS implements MplsDiscovery, MplsPolling, WirelessPowerDisco
|
||||
$svc_id = $svcs->firstWhere('svc_oid', $svcId)->svc_id;
|
||||
$traffic_id = $svcId . '.' . $sapPortId . '.' . $this->nokiaEncap($sapEncapValue);
|
||||
|
||||
// Any unused vlan on a port returns * in sapEncapValue but had OID .4095
|
||||
$specialQinQIdentifier = $this->nokiaEncap($sapEncapValue);
|
||||
if ($specialQinQIdentifier == '*') {
|
||||
$specialQinQIdentifier = '4095';
|
||||
$traffic_id = $svcId . '.' . $sapPortId . '.' . $specialQinQIdentifier;
|
||||
}
|
||||
|
||||
$saps->push(new MplsSap([
|
||||
'svc_id' => $svc_id,
|
||||
'svc_oid' => $svcId,
|
||||
|
@ -440,6 +440,11 @@ function generate_port_url($port, $vars = [])
|
||||
|
||||
function generate_sap_url($sap, $vars = [])
|
||||
{
|
||||
// Overwrite special QinQ sap identifiers
|
||||
if ($sap['sapEncapValue'] == '*') {
|
||||
$sap['sapEncapValue'] = '4095';
|
||||
}
|
||||
|
||||
return \LibreNMS\Util\Url::graphPopup(['device' => $sap['device_id'], 'page' => 'graphs', 'type' => 'device_sap', 'tab' => 'routing', 'proto' => 'mpls', 'view' => 'saps', 'traffic_id' => $sap['svc_oid'] . '.' . $sap['sapPortId'] . '.' . $sap['sapEncapValue']], $vars);
|
||||
}//end generate_sap_url()
|
||||
|
||||
|
Reference in New Issue
Block a user