librenms/includes/discovery/core.inc.php
Tony Murray f94f7f23b8
Fully convert core to a modern module (#13347)
* 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
2021-10-19 15:43:43 -05:00

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);