use lshw for inventory #58
No reviewers
Labels
No labels
help wanted
need testing
status: accepted
status: discussing
type: bug
type: documentation
type: duplicate
type: enhancement
type:hardware
type: invalid
type: major feature
type: minor feature
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: DGNum/netbox-agent#58
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "lshw-inventory"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Creates sata and nvme disk, motherboard, network interfaces, dimm's.
Since the difference between update and create is minimal, I've combined them together into a single function. update gets empty arrays, which simply bypass the delete function and go straight to the create part of the update function.
Several duplicate code blocks was merged into a single function.
I have no idea if the raid still works.
You need to have the 'nvme' program installed, along with 'lshw' to use.
t
I've commited several modifications, I'm gonna do more testing but from what I can see it's good
Most of the modifications are to make sure the raid disks behavior is backward compatible
Is it good for you?
LGTM.
I'm performing more tests and will commit some modifications
Most of them are un-existing lshw dict keys (product/serial/etc), so I'm making sure it's fail proof :)