Files
librenms-librenms/LibreNMS/OS/Fortiadc.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
380 B
PHP
Raw Normal View History

<?php
namespace LibreNMS\OS;
use App\Models\Device;
use LibreNMS\Interfaces\Discovery\OSDiscovery;
use LibreNMS\OS\Shared\Fortinet;
class Fortiadc extends Fortinet implements OSDiscovery
{
public function discoverOS(Device $device): void
{
parent::discoverOS($device); // yaml
$device->hardware = $device->hardware ?: $this->getHardwareName();
}
}