Commit Graph
100 Commits
Author SHA1 Message Date
Daniel W. Anner e43c2633e7 Adding further documentation to the readme (with links back to docs.netbox.dev) to explain the different DCIM parts. Hopefully this will help with contributors understanding (#1879) 2024-01-23 09:39:53 -05:00
Daniel W. Anner 9e0c228482 updating pre-commit (#1875) 2024-01-22 12:43:23 -05:00
Daniel W. Anner 4f6289e873 Updating psutil and pytest (#1873) 2024-01-22 11:48:27 -05:00
Daniel W. Anner 25ab2658a9 updating actions versioning (#1871) 2024-01-22 11:31:30 -05:00
Daniel W. Anner 9e81422a65 adding nov2023 dependancy updates (#1773) 2023-11-20 10:02:28 -05:00
Daniel W. Anner 09e59d10d8 fixing rename file (#1710) 2023-10-23 16:34:23 -04:00
Daniel W. Anner 6aae04ac3b Pytest Test Case - Renamed File w/o Slug/PN Change (#1708)
* Updating tests to solve the issue in PR#1667 which fails on a renamed file (with a valid slug)

* preseving old functionality
2023-10-23 16:11:49 -04:00
Daniel W. Anner c7cd4fa27e Updating Dependancies and pre-commit packages (#1707)
* bumping deps

* updated pre-commit packages
2023-10-23 11:47:57 -04:00
Daniel W. Anner 3a8ed6f6dd adding updated reqs (#1704) 2023-10-23 11:14:48 -04:00
Daniel W. Anner 2a5bc8fefc Update update-generated-schema.yml 2023-09-26 12:52:10 -04:00
Daniel W. Anner 31ef1e6fa7 Update generated_schema.json 2023-09-26 12:14:31 -04:00
Daniel W. Anner e171af3182 Update update-generated-schema.yml 2023-09-26 12:14:12 -04:00
Daniel W. Anner a2dd0934cd Update update-generated-schema.yml 2023-09-26 12:09:40 -04:00
Daniel W. Anner eb4445ab7c Update update-generated-schema.yml 2023-09-26 12:02:37 -04:00
Daniel W. Anner 582deda4d1 Update update-generated-schema.yml 2023-09-26 11:58:42 -04:00
Daniel W. Anner 840247f0ee Update update-generated-schema.yml 2023-09-26 11:49:58 -04:00
Daniel W. Anner 68e18ab734 Update update-generated-schema.yml 2023-09-26 11:45:59 -04:00
Daniel W. Anner 851f4fbc06 Adding new schema workflow and updating cache usage (#1637) 2023-09-26 11:43:09 -04:00
Daniel W. Anner 76513f31ac Adding new script to assist with automatically updating generated JSON (#1635) 2023-09-26 10:31:43 -04:00
Daniel W. Anner c254f26961 Adding NetBox v3.6.2 generated schema (#1634) 2023-09-26 09:21:43 -04:00
Daniel W. Anner 282559fa45 Module Test Improvements (#1608)
* Adding --all switch to the pre-commit check

* Adding test code to verify component positions are not the same for similar modules

* Adding code to validate component names and duplicate positions. This was discovered in issue #1584

* Reverting accidental change to pre-commit-config.yaml

* Update SDU-5000.yml

Reverting testing change

* Update device_types.py

Removed un-needed import
2023-09-06 14:14:11 -04:00
Daniel W. Anner 5345715d2f Adding Panduit images from issue #1601 (#1606) 2023-09-06 10:29:33 -04:00
Daniel W. Anner 976874a871 Bumping deps (#1604) 2023-09-05 15:52:36 -04:00
Daniel W. Anner b25e45e1b7 Adding code to check if the all switch is called (#1603) 2023-09-05 15:39:21 -04:00
Daniel W. Anner 4025470c45 Updating Stale action (#1602) 2023-09-05 14:21:19 -04:00
Daniel W. Anner d2a186bf8d Adding various device images (#1592)
* Adding various device images

* Removing temp file added by accident and adding other images.
2023-08-29 14:24:33 -04:00
Daniel W. Anner aad7aa7fbe Generated update (#1528)
* Updating schemas for autogenerated schema information

* Adding generated schema file
2023-08-02 16:34:27 -04:00
Daniel W. Anner 7fd9b5a423 Updating schemas for autogenerated schema information (#1527) 2023-08-02 15:12:52 -04:00
Daniel W. Anner 5d99d931c1 Adding generated schema in preperation of PR for [NetBox Issue 10030](https://github.com/netbox-community/netbox/issues/10030) (#1525) 2023-08-02 12:38:35 -04:00
Daniel W. Anner cfbc3ec223 Jpsu fix (#1520)
* Added test functionality to use original all files testing. Fixed JPSU-920-AC-AFO issue from Issue#1514

* Fixed JPSU issue

* Fixing file format issue

* fixing file we altered by accident
2023-08-01 12:02:16 -04:00
Daniel W. Anner 8eb68d6a19 Adding module file name checks as well (#1519) 2023-08-01 11:46:04 -04:00
Daniel W. Anner 39bb85e2bf Bumping jsonschema. PR#1515 (#1518) 2023-08-01 10:02:41 -04:00
Daniel W. Anner cf742e65b1 Bumping pyyaml anmd jsonschema. Realted to PR#1516 and PR#1515 (#1517) 2023-08-01 09:53:44 -04:00
Daniel W. Anner 0b3658448a Adding 100gbase-x-dsfp and 100gbase-x-sfpdd (#1510) 2023-07-31 10:01:56 -04:00
Daniel W. Anner c42f6c4b4a Fixing formatting (#1507) 2023-07-30 21:12:42 -04:00
Daniel W. Anner ecb0ffed92 Updating wording (#1501) 2023-07-27 16:39:10 -04:00
Daniel W. Anner 4ce37fa8a3 Pickle Action Tasks (#1500)
* adding test for pickle

* adding a PR comment if the file is modified

* Adding a step to add the appropriate labels

* Adding action to remove label if pickle is not modified

* adding newline to fix formatting
2023-07-27 14:17:58 -04:00
Daniel W. Anner 1defb11182 Revert "Adding failure condition for pickle file (#1497)" (#1498)
This reverts commit 8da45ff037.
2023-07-27 12:17:34 -04:00
Daniel W. Anner 8da45ff037 Adding failure condition for pickle file (#1497) 2023-07-27 11:54:18 -04:00
Daniel W. Anner a5050ebe41 Update definitions_test.py 2023-07-20 11:14:30 -04:00
Daniel W. Anner 7b527f51ba Update definitions_test.py
Fixed mistake - left testing code in
2023-07-20 11:03:34 -04:00
Daniel W. Anner 1868743431 Update definitions_test.py
Resolved issue with renamed files
2023-07-20 11:01:08 -04:00
Daniel W. Anner 745591e2e0 Update validation.yml
Fix source issue
2023-07-19 13:51:38 -04:00
Daniel W. Anner bbc887e2b7 Update validation.yml 2023-07-19 13:47:42 -04:00
Daniel W. Anner c1842856ae Update build-cache.yml 2023-07-19 13:44:21 -04:00
Daniel W. Anner 12aa87787f Create build-cache.yml 2023-07-19 13:40:36 -04:00
Daniel W. Anner 5005ceb7df Update validation.yml 2023-07-19 13:27:27 -04:00
Daniel W. Anner d1e2f1789b Update validation.yml 2023-07-19 13:19:24 -04:00
Daniel W. Anner 0386274381 Update .gitignore 2023-07-19 13:17:18 -04:00
Daniel W. Anner 625141268e Update validation.yml 2023-07-19 12:54:19 -04:00
Daniel W. Anner c6a158cde8 Update validation.yml 2023-07-19 12:41:18 -04:00
Daniel W. Anner 1a9b233d3d Update definitions_test.py
Correcting schema mapping issue
2023-07-19 12:11:11 -04:00
Daniel W. Anner 2e2bb3cf4e Update definitions_test.py 2023-07-19 11:53:37 -04:00
Daniel W. Anner bd60fe6d72 Update validation.yml 2023-07-19 11:09:33 -04:00
Daniel W. Anner 18efc4473d Update validation.yml 2023-07-19 11:06:31 -04:00
Daniel W. Anner ee96c5a57d Update master-slugs.yml 2023-07-19 11:06:18 -04:00
Daniel W. Anner 30cf68a804 Update definitions_test.py 2023-07-19 11:04:51 -04:00
Daniel W. Anner b55d20c4bf Update definitions_test.py 2023-07-19 10:45:01 -04:00
Daniel W. AnnerandNetBox Bot 15a3e7a9d1 Restore master (#1473)
* Pytest Optimizations (#1465)

* Adding function to determin file changes from upstream via git

* updated test env function to properly skip when files are empty

* updating to use generated slug list

* fixing if statement

* added known slugs functionality to improve runtime

* updating slugs for using git repo

* adding final changes

* updating library url to be correct

* Update master-slugs.yml

* commit to force pr merge (#1466)

* Pytest pr (#1467)

* commit to force pr merge

* commit to force pr merge

* Update master-slugs.yml

* Regenerate master slug list after successful PR merge

* Update master-slugs.yml

* fianl changes to new master slug workflow (#1468)

* Final pr test (#1469)

* fianl changes to new master slug workflow

* trying new branch push

* changing to myself (#1470)

* testing permission on github_token

* testing permission on github_token

* testing permission on github_token

---------

Co-authored-by: NetBox Bot <info@netboxlabs.com>
2023-07-19 10:32:32 -04:00
Daniel W. Anner e42a14b180 Revert "PR CI Testing (#1472)" (#1474)
This reverts commit 3d0803957d.
2023-07-19 10:32:03 -04:00
Daniel W. AnnerandNetBox Bot 3d0803957d PR CI Testing (#1472)
* Pytest Optimizations (#1465)

* Adding function to determin file changes from upstream via git

* updated test env function to properly skip when files are empty

* updating to use generated slug list

* fixing if statement

* added known slugs functionality to improve runtime

* updating slugs for using git repo

* adding final changes

* updating library url to be correct

* Update master-slugs.yml

* commit to force pr merge (#1466)

* Pytest pr (#1467)

* commit to force pr merge

* commit to force pr merge

* Update master-slugs.yml

* Regenerate master slug list after successful PR merge

* Update master-slugs.yml

* fianl changes to new master slug workflow (#1468)

* Final pr test (#1469)

* fianl changes to new master slug workflow

* trying new branch push

* changing to myself (#1470)

* testing permission on github_token

* testing permission on github_token

---------

Co-authored-by: NetBox Bot <info@netboxlabs.com>
2023-07-19 10:24:20 -04:00
Daniel W. Anner d0cb58d96e Adding Tests: Device Power (#1463)
* broke component validation out to its own function. Adding logic for validating device power input.

* Added console-port poe true for adapters. Updating devices to add proper power sources.

* Adding switches to allow for tests to properly determine POE status.

* Fixing files with missing power definitions.
2023-07-17 15:23:56 -04:00
Daniel W. Anner 4ac4c79ab1 Updating comments and error messages for better readability and validation (#1457) 2023-07-14 15:38:14 -04:00
Daniel W. Anner de70c1edde Test updates (#1455)
* breaking out tests for easier usage

* refactoring codebase

* Added verification for properly formatted slug and fixed definitions that were incorrect

* Adding new test case to ensure the file name matches either the slug or the part_number

* fixed file names to match proper formatting

* Adding test for annotating failures
2023-07-14 15:12:28 -04:00
Daniel W. Anner c95b166139 Implementing Test Updates (Slugs & File Names) (#1454)
* breaking out tests for easier usage

* refactoring codebase

* Added verification for properly formatted slug and fixed definitions that were incorrect

* Adding new test case to ensure the file name matches either the slug or the part_number

* fixed file names to match proper formatting
2023-07-12 20:00:44 -04:00
Daniel W. Anner 9722ac6f70 Adding Luna G5Backup Token (#1440) 2023-06-28 15:52:12 -04:00
Daniel W. Anner 47d098e34a Adding 200gbase-x-qsfpdd pending adoption in upstream repository (#1371) 2023-06-26 11:22:18 -04:00
Daniel W. Anner 05d8aca4ec Bumped dependancies (#1427)
- pre-commit to 3.3.2
- yamllint to 1.32.0
2023-06-12 10:24:30 -04:00
Daniel W. Anner a1284a34c0 Filename fixes (#1378)
* Migrating files with underscores to dashes

* fixing file names
2023-05-22 18:15:06 -04:00
Daniel W. Anner 4acb64eeb3 fixing qnap file names (#1377) 2023-05-22 16:56:30 -04:00
Daniel W. Anner 7ab7852a3b Slug Migration (#1375)
* Migrated device slugs for 3com

* Migrated device slugs for A10

* migrating manufacturers slugs

* Migrated device slugs for AVM

* Migrated device slugs for Avocent

* Migrated device slugs for Brocade

* Migrated device slugs for Calix

* Migrated device slugs for Checkpoint

* Migrated device slugs for more Checkpoint files

* Migrated device slugs for Ciena

* Migrated device slugs for Citrix

* Migrated device slugs for Colable

* Migrated device slugs for Corning

* Migrated device slugs for CryptoPro

* Migrated device slugs for CyberPower

* Migrated device slugs for Datacom

* Migrating slug definition for manufacturer Deciso

* Migrating slug definition for manufacturer Dell

* Migrating slug definition for manufacturer Extreme Networks

* Migrating slug definition for manufacturer F5

* Migrating slug definition for manufacturer Fortinet

* Migrating slug definition for manufacturer FS

* Migrating slug definition for manufacturer Generic

* Migrating slug definition for manufacturer Huawei

* Migrating slug definition for manufacturer LANCOM

* Migrating slug definition for manufacturer Lenovo

* Migrating slug definition for manufacturer Mikrotik

* Migrating slug definition for manufacturer Opengear

* Migrating slug definition for manufacturer Palo Alto

* Migrating slug definition for manufacturer Panduit

* Migrating slug definition for manufacturer QNAP

* Migrating slug definition for manufacturer Rockwell Automation

* Migrating slug definition for manufacturer Ubiquiti

* Migrating slug definition for manufacturer Yamaha

* Migrating slug definition for manufacturer WTI

* Migrating slug definition for manufacturers

* Migrating slug definition for manufacturer Rohde & Schwarz

* fixing double slugs and file names

* fixing slug names to match proper format

* fixing slug names to match proper format

* fixing slugs to match proper format

* fixing slugs to match proper format for Nokia. Also fixed file names for elevation images.

* fixing slugs to match proper format

* fixing slugs to match proper format

* fixing slugs to match proper format for manufacturer Cisco

* fixing slugs to match proper format for manufacturer MikroTik

* fixing slugs to match proper format for manufacturer Ubiquiti

* adding sloppy script used to migrate files
2023-05-22 16:38:34 -04:00
Daniel W. Anner be5e88fe74 Migrating juniper device slugs to new naming scheme (#1374) 2023-05-22 11:04:49 -04:00
Daniel W. AnnerandImgBotApp 5eb385e9f0 [ImgBot] Optimize images (#1373)
*Total -- 207.40kb -> 196.80kb (5.11%)

/elevation-images/Nokia/nokia-7220-ixr-d1.rear.png -- 20.92kb -> 19.52kb (6.73%)
/elevation-images/Nokia/nokia-7220-ixr-d2l.front.png -- 23.44kb -> 21.97kb (6.27%)
/elevation-images/Nokia/nokia-7220-ixr-d3l.rear.png -- 13.57kb -> 12.72kb (6.25%)
/elevation-images/Nokia/nokia-7220-ixr-d2l.rear.png -- 26.23kb -> 24.60kb (6.22%)
/elevation-images/Nokia/nokia-7220-ixr-d2.rear.png -- 20.84kb -> 19.80kb (4.99%)
/elevation-images/Nokia/nokia-7220-ixr-d3.front.png -- 19.86kb -> 18.97kb (4.47%)
/elevation-images/Nokia/nokia-7220-ixr-h3.rear.png -- 21.90kb -> 20.96kb (4.27%)
/elevation-images/Nokia/nokia-7220-ixr-d1.front.png -- 19.99kb -> 19.15kb (4.2%)
/elevation-images/Nokia/nokia-7220-ixr-d3.rear.png -- 21.20kb -> 20.32kb (4.13%)
/elevation-images/Nokia/nokia-7220-ixr-d2.front.png -- 19.45kb -> 18.79kb (3.4%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2023-05-22 10:39:40 -04:00
Daniel W. Anner 1c59243085 adding folder and first image for module images (#1372) 2023-05-22 10:37:10 -04:00
Daniel W. Anner 3d4d275424 Update BIG-IP-2000.yaml 2023-05-18 08:52:05 -04:00
Daniel W. Anner 598596de04 Updating Meraki model and slugs (#1360) 2023-05-16 11:52:03 -04:00
Daniel W. Anner 0e5685b746 Thales/SafeNet Network HSMs (#1337)
* added Thales T2000 and its PSU

* Added Thales/SafeNet Luna K6 net-hsm and psu
2023-05-09 12:10:25 -04:00
Daniel W. Anner 860a5bfa67 Cisco Fixes & PWR-C1-350WAC-P (#1335)
* fixed file name and type for c2960xr-24ts-i and fixed power slots for c9300-48t

* Added PWR-C1-350WAC-P
2023-05-08 16:23:53 -04:00
Daniel W. Anner 382e05afb8 Adding Cisco WS-C2960XR-24TS-I (#1334) 2023-05-08 15:43:56 -04:00
Daniel W. Anner af495389fe migrating files to match best practices (#1333) 2023-05-08 11:51:27 -04:00
Daniel W. Anner 6241b5054d updating dell slugs to match proper formatting (#1332) 2023-05-08 11:39:40 -04:00
Daniel W. Anner 0e6f6cc125 Pre-Commit bump (#1328)
* Dependencies updates for May 2023

* adding updates to pre-commit and validation

* updating pre-commit config

* Bumped pre-commit to 3.3.1
2023-05-05 13:02:11 -04:00
Daniel W. Anner 12638369b3 Dependencies updates for May 2023 (#1326)
* Dependencies updates for May 2023

* adding updates to pre-commit and validation

* updating pre-commit config
2023-05-05 12:49:12 -04:00
Daniel W. Anner 871fd00893 Adding Vertiv & Avocent MPUIQ-SRL and MPUIQ-VMCHS (#1313) 2023-04-25 12:58:43 -04:00
Daniel W. Anner 7f88be73ae Update README.md
Added more details regarding properly defining the slug
2023-04-13 11:06:17 -04:00
Daniel W. Anner adc40244b1 Update WAX610D.yaml 2023-04-13 10:08:58 -04:00
Daniel W. Anner 4fbea7c425 bumping releases (#1255) 2023-04-01 15:41:20 -04:00
Daniel W. Anner 0a46e3f053 updated PA-850 and added psu (#1249) 2023-03-30 13:18:57 -04:00
Daniel W. Anner cd12651e18 Update BIG-IP-2000.yaml
Fix port to 10gbase-x-sfpp
2023-03-30 12:51:02 -04:00
Daniel W. Anner afcc0f4c87 Adding bigip 2000 series (#1248) 2023-03-30 12:48:50 -04:00
Daniel W. Anner 1c6b36aaa5 Eaton Updates (#1247)
* Added proper upc to part number. Added airflow and weight. fixed slug

* Fixed slugs and model names for eaton devices

* Fixed file names
2023-03-30 12:27:08 -04:00
Daniel W. Anner 9c71b9de84 Allied Telesis AT-MCR12 Update (#1246)
* added airflow, weight, and fixed slug

* fixed file name to match model/pn
2023-03-30 12:07:20 -04:00
Daniel W. Anner f49ef192fc Added r6515 airflow (#1245) 2023-03-30 11:50:51 -04:00
Daniel W. Anner b36c0d7407 Migrate tripp lite to eaton (#1242)
* Migrate tripp lite to eaton

* merge tripplite module to eaton
2023-03-30 09:54:33 -04:00
Daniel W. Anner 4f16fe54f2 added part numbers and weight to tripp lite (#1241) 2023-03-29 10:41:15 -04:00
Daniel W. Anner 1ddaab3951 Tests: Remove uppercase from slug (#1227)
* Removed uppercase from devicetype schema slug definition. Fixed incorrect device slugs

* Update CISCO2951_K9.yaml

* Rename CISCO2951_K9.yaml to 2951-K9.yaml
2023-03-25 11:45:15 -04:00
Daniel W. Anner 86af9cd854 Update README.md 2023-03-24 16:55:55 -04:00
Daniel W. Anner 8c4f87cde2 Update README.md
Added front and rear image definition
2023-03-24 16:55:30 -04:00
Daniel W. Anner f78c90d38b Adding elevation images folder and test logic (#1225)
* Added new test code for elevation images. Added elevation folder.

* Also adding first file with image definitions
2023-03-24 16:50:47 -04:00
Daniel W. Anner 421ef832ac Validation Testing Increase (#1208)
* Create

* Update validation.yml

* testing fixes

* Update validation.yml

* Added missing uses to validation file

* Update HP-5120-48G-PoEP-EI.yaml

* testing fixes

* Added newline at end of yaml file

* removing unnessecary tasks from validation

* Update HP-5120-24G-PoEP-EI.yaml

* Update HP-5120-24G-PoEP-EI.yaml
2023-03-15 15:03:33 -04:00