mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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>
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreatePortsVdslTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('ports_vdsl', function (Blueprint $table) {
|
||||
$table->unsignedInteger('port_id')->unique();
|
||||
$table->timestamp('port_vdsl_updated')->useCurrent();
|
||||
$table->integer('xdsl2LineStatusAttainableRateDs')->default(0);
|
||||
$table->integer('xdsl2LineStatusAttainableRateUs')->default(0);
|
||||
$table->integer('xdsl2ChStatusActDataRateXtur')->default(0);
|
||||
$table->integer('xdsl2ChStatusActDataRateXtuc')->default(0);
|
||||
$table->decimal('xdsl2LineStatusActAtpDs')->default(0);
|
||||
$table->decimal('xdsl2LineStatusActAtpUs')->default(0);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('ports_vdsl');
|
||||
}
|
||||
}
|
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class UpdatePortsAdslTableWithDefaults extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('ports_adsl', function (Blueprint $table) {
|
||||
$table->string('adslLineCoding', 8)->default('')->change();
|
||||
$table->string('adslLineType', 16)->default('')->change();
|
||||
$table->string('adslAtucInvVendorID', 16)->default('')->change();
|
||||
$table->string('adslAtucInvVersionNumber', 16)->default('')->change();
|
||||
$table->decimal('adslAtucCurrSnrMgn', 5, 1)->default(0)->change();
|
||||
$table->decimal('adslAtucCurrAtn', 5, 1)->default(0)->change();
|
||||
$table->decimal('adslAtucCurrOutputPwr', 5, 1)->default(0)->change();
|
||||
$table->integer('adslAtucCurrAttainableRate')->default(0)->change();
|
||||
$table->integer('adslAtucChanCurrTxRate')->default(0)->change();
|
||||
$table->string('adslAturInvSerialNumber', 32)->default('')->change();
|
||||
$table->string('adslAturInvVendorID', 16)->default('')->change();
|
||||
$table->string('adslAturInvVersionNumber', 16)->default('')->change();
|
||||
$table->integer('adslAturChanCurrTxRate')->default(0)->change();
|
||||
$table->decimal('adslAturCurrSnrMgn', 5, 1)->default(0)->change();
|
||||
$table->decimal('adslAturCurrAtn', 5, 1)->default(0)->change();
|
||||
$table->decimal('adslAturCurrOutputPwr', 5, 1)->default(0)->change();
|
||||
$table->integer('adslAturCurrAttainableRate')->default(0)->change();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('ports_adsl', function (Blueprint $table) {
|
||||
$table->string('adslLineCoding', 8)->change();
|
||||
$table->string('adslLineType', 16)->change();
|
||||
$table->string('adslAtucInvVendorID', 8)->change();
|
||||
$table->string('adslAtucInvVersionNumber', 8)->change();
|
||||
$table->decimal('adslAtucCurrSnrMgn', 5, 1)->change();
|
||||
$table->decimal('adslAtucCurrAtn', 5, 1)->change();
|
||||
$table->decimal('adslAtucCurrOutputPwr', 5, 1)->change();
|
||||
$table->integer('adslAtucCurrAttainableRate')->change();
|
||||
$table->integer('adslAtucChanCurrTxRate')->change();
|
||||
$table->string('adslAturInvSerialNumber', 8)->change();
|
||||
$table->string('adslAturInvVendorID', 8)->change();
|
||||
$table->string('adslAturInvVersionNumber', 8)->change();
|
||||
$table->integer('adslAturChanCurrTxRate')->change();
|
||||
$table->decimal('adslAturCurrSnrMgn', 5, 1)->change();
|
||||
$table->decimal('adslAturCurrAtn', 5, 1)->change();
|
||||
$table->decimal('adslAturCurrOutputPwr', 5, 1)->change();
|
||||
$table->integer('adslAturCurrAttainableRate')->change();
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user