mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 10:58:42 +00:00
f94f7f23b8
* Core module WIP * update OS::make() * core WIP * try to finish up * switch all core do os Model * Mock WIP * Working tests * cleanup * phpstan fixes * style fixes * fix agent * trim space too and a couple of cleanups * corrected ios test data * missed space * update test data * put escapes back * another net-snmp difference * Fix class description * revert snmp.inc.php change, that can be a different PR * revert snmp.inc.php change, that can be a different PR
11 lines
196 B
PHP
11 lines
196 B
PHP
<?php
|
|
|
|
use LibreNMS\OS;
|
|
use LibreNMS\OS\Generic;
|
|
|
|
// start assuming no os
|
|
(new \LibreNMS\Modules\Core())->discover(Generic::make($device));
|
|
|
|
// then create with actual OS
|
|
$os = OS::make($device);
|