2020-11-03 17:18:31 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Factories;
|
|
|
|
|
|
|
|
use App\Models\OspfPort;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
|
|
|
class OspfPortFactory extends Factory
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The name of the factory's corresponding model.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $model = OspfPort::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(),
|
|
|
|
'ospf_port_id' => $this->faker->randomDigit(),
|
2020-11-03 17:18:31 +01:00
|
|
|
'ospfIfIpAddress' => $this->faker->ipv4,
|
2021-07-13 16:35:43 -05:00
|
|
|
'ospfAddressLessIf' => $this->faker->randomDigit(),
|
2020-11-03 17:18:31 +01:00
|
|
|
'ospfIfAreaId' => '0.0.0.0',
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|