Added detection for CoreOS devices (#8899)

DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [ ] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
This commit is contained in:
CrazyMax
2018-07-16 18:36:42 +02:00
committed by Neil Lathwood
parent 310f7ca401
commit d0943313e2
5 changed files with 50 additions and 0 deletions

35
tests/data/coreos.json Normal file
View File

@@ -0,0 +1,35 @@
{
"os": {
"discovery": {
"devices": [
{
"sysName": "",
"sysObjectID": ".1.3.6.1.4.1.8072.3.2.10",
"sysDescr": "Linux coreos 4.14.48-coreos-r2 #1 SMP Thu Jun 14 08:23:03 UTC 2018 x86_64",
"sysContact": null,
"version": null,
"hardware": "",
"features": null,
"location": null,
"os": "coreos",
"type": "server",
"serial": null,
"icon": "coreos.svg"
}
]
},
"poller": "matches discovery"
},
"bgp-peers": {
"discovery": {
"devices": [
{
"bgpLocalAs": null
}
],
"bgpPeers": [],
"bgpPeers_cbgp": []
},
"poller": "matches discovery"
}
}

View File

@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|Linux coreos 4.14.48-coreos-r2 #1 SMP Thu Jun 14 08:23:03 UTC 2018 x86_64
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.4.1.8072.3.2.10