mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
OSPF SNMP Trap Handlers (#11647)
* Intitial push working tests * Adding unit tests * created interface state unit tests * started ospf nbr unit tests * finished nbr change unit tests * precommit checks pass * removed uneccsarry relationship
This commit is contained in:
@@ -132,6 +132,32 @@ $factory->define(\App\Models\Vminfo::class, function (Faker\Generator $faker) {
|
||||
];
|
||||
});
|
||||
|
||||
$factory->define(\App\Models\OspfNbr::class, function (Faker\Generator $faker) {
|
||||
return [
|
||||
'id' => $faker->randomDigit,
|
||||
'ospfNbrIpAddr' => $faker->ipv4,
|
||||
'ospfNbrAddressLessIndex' => $faker->randomDigit,
|
||||
'ospfNbrRtrId' => $faker->ipv4,
|
||||
'ospfNbrOptions' => 0,
|
||||
'ospfNbrPriority' => 1,
|
||||
'ospfNbrEvents' => $faker->randomDigit,
|
||||
'ospfNbrLsRetransQLen' => 0,
|
||||
'ospfNbmaNbrStatus' => 'active',
|
||||
'ospfNbmaNbrPermanence' => 'dynamic',
|
||||
'ospfNbrHelloSuppressed' => 'false',
|
||||
];
|
||||
});
|
||||
|
||||
$factory->define(\App\Models\OspfPort::class, function (Faker\Generator $faker) {
|
||||
return [
|
||||
'id' => $faker->randomDigit,
|
||||
'ospf_port_id' => $faker->randomDigit,
|
||||
'ospfIfIpAddress' => $faker->ipv4,
|
||||
'ospfAddressLessIf' => $faker->randomDigit,
|
||||
'ospfIfAreaId' => '0.0.0.0',
|
||||
];
|
||||
});
|
||||
|
||||
$factory->define(\App\Models\Component::class, function (Faker\Generator $faker) {
|
||||
return [
|
||||
'device_id' => $faker->randomDigit,
|
||||
|
Reference in New Issue
Block a user