mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-02 00:32:09 +02:00
formatting
This commit is contained in:
@@ -2,22 +2,22 @@
|
|||||||
|
|
||||||
$stp_raw = dbFetchRow('SELECT * FROM `stp` WHERE `device_id` = ?', array($device['device_id']));
|
$stp_raw = dbFetchRow('SELECT * FROM `stp` WHERE `device_id` = ?', array($device['device_id']));
|
||||||
$stp = array (
|
$stp = array (
|
||||||
'Root bridge' => ($stp_raw['rootBridge'] == 1) ? 'Yes' : 'No',
|
'Root bridge' => ($stp_raw['rootBridge'] == 1) ? 'Yes' : 'No',
|
||||||
'Bridge address (MAC)' => $stp_raw['bridgeAddress'],
|
'Bridge address (MAC)' => $stp_raw['bridgeAddress'],
|
||||||
'Protocol specification' => $stp_raw['protocolSpecification'],
|
'Protocol specification' => $stp_raw['protocolSpecification'],
|
||||||
'Priority (0-61440)' => $stp_raw['priority'],
|
'Priority (0-61440)' => $stp_raw['priority'],
|
||||||
'Time since topology change' => formatUptime($stp_raw['timeSinceTopologyChange']),
|
'Time since topology change' => formatUptime($stp_raw['timeSinceTopologyChange']),
|
||||||
'Topology changes' => $stp_raw['topChanges'],
|
'Topology changes' => $stp_raw['topChanges'],
|
||||||
'Designated root (MAC)' => $stp_raw['designatedRoot'],
|
'Designated root (MAC)' => $stp_raw['designatedRoot'],
|
||||||
'Root cost' => $stp_raw['rootCost'],
|
'Root cost' => $stp_raw['rootCost'],
|
||||||
'Root port' => $stp_raw['rootPort'],
|
'Root port' => $stp_raw['rootPort'],
|
||||||
'Max age (s)' => $stp_raw['maxAge'],
|
'Max age (s)' => $stp_raw['maxAge'],
|
||||||
'Hello time (s)' => $stp_raw['helloTime'],
|
'Hello time (s)' => $stp_raw['helloTime'],
|
||||||
'Hold time (s)' => $stp_raw['holdTime'],
|
'Hold time (s)' => $stp_raw['holdTime'],
|
||||||
'Forward delay (s)' => $stp_raw['forwardDelay'],
|
'Forward delay (s)' => $stp_raw['forwardDelay'],
|
||||||
'Bridge max age (s)' => $stp_raw['bridgeMaxAge'],
|
'Bridge max age (s)' => $stp_raw['bridgeMaxAge'],
|
||||||
'Bridge hello time (s)' => $stp_raw['bridgeHelloTime'],
|
'Bridge hello time (s)' => $stp_raw['bridgeHelloTime'],
|
||||||
'Bridge forward delay (s)' => $stp_raw['bridgeForwardDelay']
|
'Bridge forward delay (s)' => $stp_raw['bridgeForwardDelay']
|
||||||
);
|
);
|
||||||
foreach (array_keys($stp) as $key) {
|
foreach (array_keys($stp) as $key) {
|
||||||
echo "
|
echo "
|
||||||
|
|||||||
Reference in New Issue
Block a user