2020-11-03 17:18:31 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Factories;
|
|
|
|
|
|
|
|
use App\Models\OspfNbr;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
2021-07-26 16:00:34 +02:00
|
|
|
/** @extends Factory<OspfNbr> */
|
2020-11-03 17:18:31 +01:00
|
|
|
class OspfNbrFactory extends Factory
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The name of the factory's corresponding model.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $model = OspfNbr::class;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Define the model's default state.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function definition()
|
|
|
|
{
|
|
|
|
return [
|
2021-07-13 16:35:43 -05:00
|
|
|
'id' => $this->faker->randomDigit(),
|
2020-11-03 17:18:31 +01:00
|
|
|
'ospfNbrIpAddr' => $this->faker->ipv4,
|
2021-07-13 16:35:43 -05:00
|
|
|
'ospfNbrAddressLessIndex' => $this->faker->randomDigit(),
|
2020-11-03 17:18:31 +01:00
|
|
|
'ospfNbrRtrId' => $this->faker->ipv4,
|
|
|
|
'ospfNbrOptions' => 0,
|
|
|
|
'ospfNbrPriority' => 1,
|
2021-07-13 16:35:43 -05:00
|
|
|
'ospfNbrEvents' => $this->faker->randomDigit(),
|
2020-11-03 17:18:31 +01:00
|
|
|
'ospfNbrLsRetransQLen' => 0,
|
|
|
|
'ospfNbmaNbrStatus' => 'active',
|
|
|
|
'ospfNbmaNbrPermanence' => 'dynamic',
|
|
|
|
'ospfNbrHelloSuppressed' => 'false',
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|