mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Additional fix for Cisco Crossbar overview missing (#12185)
* Additional fix for Cisco Crossbar overview missing * Fix code style
This commit is contained in:
@@ -34,6 +34,9 @@ require 'overview/processors.inc.php';
|
||||
require 'overview/mempools.inc.php';
|
||||
require 'overview/storage.inc.php';
|
||||
|
||||
if (! isset($entity_state)) {
|
||||
$entity_state = get_dev_entity_state($device['device_id']);
|
||||
}
|
||||
if (is_array($entity_state['group']['c6kxbar'])) {
|
||||
require 'overview/c6kxbar.inc.php';
|
||||
}
|
||||
|
@@ -10,7 +10,9 @@ echo '<i class="fa fa-arrows fa-lg icon-theme" aria-hidden="true"></i> <strong>C
|
||||
echo ' </div>
|
||||
<table class="table table-hover table-condensed table-striped">';
|
||||
|
||||
$entity_state = get_dev_entity_state($device['device_id']);
|
||||
if (! isset($entity_state)) {
|
||||
$entity_state = get_dev_entity_state($device['device_id']);
|
||||
}
|
||||
foreach ($entity_state['group']['c6kxbar'] as $index => $entry) {
|
||||
// FIXME i'm not sure if this is the correct way to decide what entphysical index it is. slotnum+1? :>
|
||||
$entity = dbFetchRow('SELECT * FROM entPhysical WHERE device_id = ? AND entPhysicalIndex = ?', [$device['device_id'], $index + 1]);
|
||||
|
Reference in New Issue
Block a user