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:
Heath Barnhart
2020-05-21 15:15:39 -05:00
committed by GitHub
parent b71d933ac9
commit e414352356
7 changed files with 612 additions and 16 deletions

View File

@@ -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,