mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Mpls Path Visualization (#10936)
* update nokia mibs * database migrations * add code * html code * update db schema * add test data * add FIXME * move mibs/nokia/MPLS-TE-MIB to mibs/MPLS-TE-MIB
This commit is contained in:
@@ -199,12 +199,12 @@ if ($vars['view'] == 'paths') {
|
||||
}
|
||||
|
||||
$host = @dbFetchRow('SELECT * FROM `ipv4_addresses` AS A, `ports` AS I, `devices` AS D WHERE A.ipv4_address = ? AND I.port_id = A.port_id AND D.device_id = I.device_id', [$path['mplsLspPathFailNodeAddr']]);
|
||||
$destination = $lsp['mplsLspPathFailNodeAddr'];
|
||||
$destination = $path['mplsLspPathFailNodeAddr'];
|
||||
if (is_array($host)) {
|
||||
$destination = generate_device_link($host, 0, array('tab' => 'routing', 'proto' => 'mpls'));
|
||||
}
|
||||
echo "<tr bgcolor=$bg_colour>
|
||||
<td>" . generate_device_link($device, 0, array('tab' => 'routing', 'proto' => 'mpls')) . '</td>
|
||||
<td>" . generate_device_link($device, 0, array('tab' => 'routing', 'proto' => 'mpls', 'view' => 'paths')) . '</td>
|
||||
<td>' . $path['mplsLspName'] . '</td>
|
||||
<td>' . $path['path_oid'] . '</td>
|
||||
<td>' . $path['mplsLspPathType'] . '</td>
|
||||
@@ -269,7 +269,7 @@ if ($vars['view'] == 'sdps') {
|
||||
$destination = generate_device_link($host, 0, array('tab' => 'routing', 'proto' => 'mpls'));
|
||||
}
|
||||
echo "<tr bgcolor=$bg_colour>
|
||||
<td>" . generate_device_link($device, 0, array('tab' => 'routing', 'proto' => 'mpls')) . '</td>
|
||||
<td>" . generate_device_link($device, 0, array('tab' => 'routing', 'proto' => 'mpls', 'view' => 'sdps')) . '</td>
|
||||
<td>' . $sdp['sdp_oid'] . '</td>
|
||||
<td>' . $destination . '</td>
|
||||
<td>' . $sdp['sdpDelivery'] . '</td>
|
||||
@@ -337,7 +337,7 @@ sapDown: The SAP associated with the service is down.">Oper State</a></th>
|
||||
}
|
||||
|
||||
echo "<tr bgcolor=$bg_colour>
|
||||
<td>" . generate_device_link($device, 0, array('tab' => 'routing', 'proto' => 'mpls')) . '</td>
|
||||
<td>" . generate_device_link($device, 0, array('tab' => 'routing', 'proto' => 'mpls', 'view' => 'sdpbinds')) . '</td>
|
||||
<td>' . $sdpbind['svcId'] . '</td>
|
||||
<td>' . $sdpbind['sdp_oid'] . ':' . $sdpbind['svc_oid'] . '</td>
|
||||
<td>' . $sdpbind['sdpBindType'] . '</td>
|
||||
@@ -405,7 +405,7 @@ vprn services are up when the service is administratively up however routing fun
|
||||
}
|
||||
|
||||
echo "<tr bgcolor=$bg_colour>
|
||||
<td>" . generate_device_link($device, 0, array('tab' => 'routing', 'proto' => 'mpls')) . '</td>
|
||||
<td>" . generate_device_link($device, 0, array('tab' => 'routing', 'proto' => 'mpls', 'view' => 'services')) . '</td>
|
||||
<td>' . $svc['svc_oid'] . '</td>
|
||||
<td>' . $svc['svcType'] . '</td>
|
||||
<td>' . $svc['svcCustId'] . '</td>
|
||||
@@ -468,7 +468,7 @@ if ($vars['view'] == 'saps') {
|
||||
}
|
||||
|
||||
echo "<tr bgcolor=$bg_colour>
|
||||
<td>" . generate_device_link($device, 0, array('tab' => 'routing', 'proto' => 'mpls')) . '</td>
|
||||
<td>" . generate_device_link($device, 0, array('tab' => 'routing', 'proto' => 'mpls', 'view' => 'saps')) . '</td>
|
||||
<td>' . $sap['svc_oid'] . '</td>
|
||||
<td>' . generate_port_link($port) . '</td>
|
||||
<td>' . $sap['sapEncapValue'] . '</td>
|
||||
|
Reference in New Issue
Block a user