Commit graph

144 commits

Author SHA1 Message Date
Solvik
e383a18d03
Merge branch 'master' into ci 2020-04-19 13:00:55 +02:00
Solvik
f06da32fc3
Virtual Machine feature (#122)
Add ability to create Virtual Machine in netbox with an auto-detecting feature (currently VirtualBox, Xen, Hyper-V, VMWare, GCP)

One caveat, I made the choice not to report the disk as Netbox model allow only one size but VM often have multiples.

Also, lot of code refactoring to be able to use create_or_update function style, fixing a lot of corner case
2020-04-19 12:28:49 +02:00
renovate[bot]
996c10d95b
Update dependency jsonargparse to v2.25.3 (#109)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-19 12:20:11 +02:00
renovate[bot]
ace8f69eab
Update dependency pynetbox to v4.3.1 (#113)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-19 12:19:43 +02:00
Solvik
312f472e9c
fix ethtool class in case ethtool works but returns nothing (#123) 2020-04-19 12:19:28 +02:00
renovate[bot]
a42cf2eb48
Update dependency pyyaml to v5.3.1 (#121)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-08 14:23:43 +02:00
Solvik Blum
0f8a09d0cf wip - test netbox server creation: 2020-03-22 18:38:32 +01:00
ThomasADavis
dc4f90d490
handle sockets with no cpu installed. should fix #117 (#118) 2020-02-21 09:13:02 +01:00
Solvik
5590f39131
Fix agent, wasn't working anymore (#115)
Bad rebase made dmidecode calls fail
2020-02-16 20:24:40 +01:00
Solvik
bb7c8c8f94
Update README.md 2020-02-04 19:27:40 +01:00
ThomasADavis
a5bc16d3b1
Adds a generic vendor for unrecognizable systems (#105)
Co-authored-by: Solvik <solvik@solvik.fr>
2020-02-03 00:38:23 +01:00
ramnes
bab2d26ad0 Setup tests 2020-02-02 20:24:01 +01:00
Solvik
bdc2cbeb8f
Update setup.py for new release (#108) 2020-01-28 11:29:25 +01:00
ThomasADavis
2280169cd9 Use choices api (#107)
* Ask netbox for choices using the API
2020-01-28 11:18:56 +01:00
renovate[bot]
b36d61e610 Update dependency pynetbox to v4.2.4 (#96)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-01-28 11:18:38 +01:00
renovate[bot]
3aa851413e Update dependency jsonargparse to v2.22.2 (#98)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-01-28 11:18:30 +01:00
ThomasADavis
405cce3995 Gets the right chassis serial number (#104) 2020-01-25 12:03:30 +01:00
renovate[bot]
86a8d73873 Update dependency pyyaml to v5.3 (#100)
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-01-21 19:25:55 +01:00
Solvik
957e5f4fb9
Update README.md 2019-12-03 00:31:32 +01:00
renovate[bot]
5f66d31ef0 Update dependency pyyaml to v5.2 (#97) 2019-12-03 00:30:45 +01:00
renovate[bot]
46af158d49 Update dependency pep8-naming to v0.9.1 (#94) 2019-11-27 11:39:04 +01:00
renovate[bot]
60f6e16cf7 Update dependency flake8-quotes to v2.1.1 (#93) 2019-11-27 11:38:02 +01:00
renovate[bot]
357ddc07f2 Update dependency flake8 to v3.7.9 (#92) 2019-11-27 11:37:48 +01:00
renovate[bot]
6c3466cb55 Update dependency jsonargparse to v2.9.0 (#87) 2019-10-23 13:44:45 +02:00
Solvik
6497261708
better error handling when DeviceRole or DeviceType don't exist (#91) 2019-10-23 12:14:50 +02:00
renovate[bot]
c458e88b57 Update dependency pynetbox to v4.0.8 (#88) 2019-10-23 11:32:17 +02:00
gardar
8ef94272a1 Update inventory.py (#89)
Replace all special characters in slug with a dash rather than just spaces and dots
2019-10-21 14:32:22 +02:00
renovate[bot]
1c5b0f4fe9 Update dependency pynetbox to v4.0.7 (#86) 2019-09-15 13:48:46 +02:00
renovate[bot]
dc3035f873 Update dependency jsonargparse to v2.6.0 (#85) 2019-09-15 13:48:36 +02:00
Solvik
a1297813ef
fix rack comparison while updating location (#84) 2019-09-12 17:47:41 +02:00
Solvik
06328e745c
Revert "fix rack comparison while updating location (#82)" (#83)
This reverts commit e9ec69bc3b.
2019-09-12 17:43:39 +02:00
Solvik
e9ec69bc3b
fix rack comparison while updating location (#82) 2019-09-12 12:03:13 +02:00
Solvik
5f851ec619
add config to set hostname command (#81) 2019-09-12 11:15:12 +02:00
Solvik
93af39e780
do not initialize RAID class when scanning for binary raid (to be reworked obviously) (#80) 2019-09-12 11:12:32 +02:00
Solvik
9f7f29c190
fix rack association (#79) 2019-09-11 17:35:27 +02:00
Solvik
458d1f83c2
fix {'part_id': ['This field may not be null.']} error (#78) 2019-09-11 14:22:32 +02:00
Solvik
8c25ab483d
add more vendors (#76) 2019-09-11 14:22:07 +02:00
Solvik
a0106675e0
handle more PSU dmidecode format (#75) 2019-09-11 10:37:31 +02:00
Solvik
4303312b17
fix PSU power parsing (#74) 2019-09-10 14:48:16 +02:00
Solvik
93c6444105
more strip from shitty dmidecode (#73) 2019-09-10 14:46:04 +02:00
Solvik
5c1e15f9e6
strip dmidecode data, because vendor dont (#72) 2019-09-10 13:39:22 +02:00
Solvik
0cf2d4fa90
fix raid creation on server's registration (#71) 2019-09-10 11:51:05 +02:00
Solvik
d402b5620c
add omreport RAID support (#69) 2019-09-10 11:44:23 +02:00
Solvik
6043ae1877
Update setup.py (#68) 2019-09-09 17:27:53 +02:00
Solvik
ba8f58180e
make InventoryItem's name attribute <50 char for memory DIMM (#67) 2019-09-09 16:52:25 +02:00
Solvik
f68fed18b4
handle multiple vlans in lldp (#66) 2019-09-09 15:32:14 +02:00
Solvik
fb68907efd
parse lldp only if configuration says so (#63) 2019-09-09 12:25:11 +02:00
renovate[bot]
10023614c4 Update dependency jsonargparse to v2.4.1 (#62) 2019-09-06 15:39:05 +02:00
renovate[bot]
9aa19e1ea1 Update dependency jsonargparse to v2.3.0 (#61) 2019-09-06 09:07:34 +02:00
Solvik
c36e03bf35
bump version to 0.3 (#60) 2019-09-05 15:23:40 +02:00