Files
librenms-librenms/includes/html/pages/device/port/xdsl.inc.php
PipoCanaja 53bfb24ef9 Migrate xDSL code to module, and add support for VDSL2 MIB (#14207)
* use component to discover if xDSL polling is needed

use component to discover if xDSL polling is needed

* Components OK, Polling in correct files, no DB for VDSL

* GUI

GUI_suite

* per port as well

* rename

* interface listing

* draytek_snmpsim

* fix arraymerge

fix names and max value

* schema

schema

style

* remove one dbFetchRows

remove 2x dbFetchCell

style

style

remove Legacy dbFetchRow

tests

tests

eloquent

more eloquent

more eloquent

one more gone

* fix properties access

eloquent_insert_update

style

tests

tests

tests

tests

* tests

tests

tests

* adslLineCoding

* Models

* fix not nullable cols in DB from code

default values

typo

rename

typo

schema

fix

fix

vdsl fix now

typo

typo

fix size

fix size

* Power values for VDSL

Power values for VDSL

Power values for VDSL

DB

* cleanup

* Rrd::checkRrdExists

* always enable DSL discovery

style

* xdsl module

* cleanup and move to Module

cleanup and move to Module

cleanup and move to Module

cleanup and move to Module

* Fix display

* fix polling and tenth

* remove legacy poller

* Style and Cosmetics

Cosmetics

Cleanup

* Translations

Translations

* exists

exists

* add test support for xdsl

* remove last component call

unused

* translations

* remove non standard onclick event on xdsl line

* Update Discovery Support.md

Update Poller Support.md

toner_gone

* Notification for removal of lnms config:set enable_ports_adsl true

* enable on devices with potential DSL interfaces

* tests are working now

fix teldat tests

* os_schema

* teldat

* move to new module structure

* move to new module structure

* wrong dump function

* wrong dump function

* laravel_through_key hidden

* Update notifications.rss

* Update notifications.rss

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-09-07 19:29:17 -05:00

46 lines
1.5 KiB
PHP

<?php
if (Rrd::checkRrdExists(Rrd::name($device['hostname'], Rrd::portName($port['port_id'], 'adsl')))) {
echo '<div class=graphhead>ADSL Current Line Speed</div>';
$graph_type = 'port_adsl_speed';
include 'includes/html/print-interface-graphs.inc.php';
echo '<div class=graphhead>ADSL Attainable Speed</div>';
$graph_type = 'port_adsl_attainable';
include 'includes/html/print-interface-graphs.inc.php';
echo '<div class=graphhead>ADSL Line Attenuation</div>';
$graph_type = 'port_adsl_attenuation';
include 'includes/html/print-interface-graphs.inc.php';
echo '<div class=graphhead>ADSL Line SNR Margin</div>';
$graph_type = 'port_adsl_snr';
include 'includes/html/print-interface-graphs.inc.php';
echo '<div class=graphhead>ADSL Output Powers</div>';
$graph_type = 'port_adsl_power';
include 'includes/html/print-interface-graphs.inc.php';
}
if (Rrd::checkRrdExists(Rrd::name($device['hostname'], Rrd::portName($port['port_id'], 'xdsl2LineStatusAttainableRate')))) {
echo '<div class=graphhead>VDSL Current Line Speed</div>';
$graph_type = 'port_vdsl_speed';
include 'includes/html/print-interface-graphs.inc.php';
echo '<div class=graphhead>VDSL Attainable Speed</div>';
$graph_type = 'port_vdsl_attainable';
include 'includes/html/print-interface-graphs.inc.php';
echo '<div class=graphhead>VDSL Output Powers</div>';
$graph_type = 'port_vdsl_power';
include 'includes/html/print-interface-graphs.inc.php';
}