Skip to content

Add and fix several Cisco and H3C devices #1176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 55 commits into from
Mar 13, 2023

Conversation

alextremblay
Copy link
Contributor

As per #1171

@alextremblay
Copy link
Contributor Author

Hi @danner26 , can you take a look and approve/merge?

@danner26
Copy link
Member

danner26 commented Mar 8, 2023

Looks like there are some issues with the new addition, so that is going to delay merging. If you want to break this out into 2 separate PRs, ping me when you remove the new file and I will merge the fix.. Then you can create a new PR for that new file

Or just leave it and lets get the fixes in place, then we can merge it all. Your call

Thank you for the fix btw!

@danner26 danner26 added the status: revisions needed This issue requires additional information to be actionable label Mar 8, 2023
@danner26
Copy link
Member

danner26 commented Mar 9, 2023

Hello, unfortunately today we had to make a change to the schema in which weight is defined by. The upstream NetBox API requires weight to be passed to it in the following format:

weight: 12.01
weight_unit: lb

Due to this change, I have updated your branch against the current master. This might require you to update your PR, if you had weight currently defined, so that your PR is in-line with the new weight schema. If you have any issues, please let me know or refer to this PR for more information.

@alextremblay alextremblay changed the title Update / deduplicate model names for Cisco WS-C3750G-12S-S and WS-C3750G-12S-E Add and fix several Cisco and H3C devices Mar 9, 2023
@danner26
Copy link
Member

danner26 commented Mar 9, 2023

I am going to convert this to a draft.. When you are done working feel free to mark it ready for review/@ me and I will re-review! Thanks for all you are doing

@danner26 danner26 marked this pull request as draft March 9, 2023 17:41
@alextremblay alextremblay marked this pull request as ready for review March 9, 2023 18:52
@alextremblay alextremblay requested a review from danner26 March 9, 2023 18:53
@alextremblay
Copy link
Contributor Author

Interesting, the build failure on CI did not occur when I ran pytest locally...

ahhhh, missing yaml document markers. ok, I'll fix

@alextremblay alextremblay marked this pull request as draft March 9, 2023 22:01
@alextremblay alextremblay marked this pull request as ready for review March 9, 2023 22:02
@alextremblay alextremblay force-pushed the alextremblay-patch-1 branch from b2c696f to 73ab644 Compare March 13, 2023 13:45
@alextremblay alextremblay marked this pull request as ready for review March 13, 2023 14:11
@alextremblay
Copy link
Contributor Author

Hi @danner26 , This PR is now ready for review.

Please see my comments regarding scope creep. I hope you see things as I do and agree with my sentiment. as much as I want this PR to be as good and as accurate as it can be, I've already sunk considerable time and effort into this endeavour, far beyond what the original PR / issue called for, and I have no more time or energy to give.

I hope you will accept this PR as it is and open separate issues for the fan modules, stakcing modules, and dc-terminal power supplies as mentioned in the comments.

If further changes are needed in order for this PR to be merged, I'm afreaid you'll have to find someone else to make them :(

@danner26
Copy link
Member

Hey @alextremblay thank you for all of your work thus far. I absolutely agree, and honestly I did not expect all of the changes in this PR. That being said I am happy to review any changes which you make. I also would like to say how much the community and myself appreciate your contribution!

That being said, all new files you create will need to be fully up to standard. Any retroactive changes can be made in a future PR, but additions you are currently implementing need to follow todays standards. Please remember a lot of these files were created before certain features were supported or implemented..

If you can wrap up the final changes needed, then we can move forward with merging this PR.

@danner26
Copy link
Member

Hey @alextremblay the module-bays should really have position properties defined, i.e. for PSU1 it should have position: 1

If you would like, send me an invite to your forked repo and I can make the changes for you

Added weight, modular PSUs and modular FANs
Removed network module since according to datasheet and pictures the 3850-48XS-E does not have a swappable module bay
@alextremblay
Copy link
Contributor Author

Thanks for clarifying and giving me the historical context. I understand where you're coming from here.

I've invited you to collaborate on my fork

@danner26
Copy link
Member

Hey @alextremblay all looks good to me now, if you'd like, please review the changes I have made and let me know if you approve

@DanSheps if you would like to look through as well feel free! Once Alex gives me the go ahead I will merge this

@alextremblay
Copy link
Contributor Author

Awesome, that all looks great!

Thank you so much for your help on this PR

@danner26 danner26 added status: accepted and removed status: revisions needed This issue requires additional information to be actionable labels Mar 13, 2023
@danner26 danner26 merged commit 3343bde into netbox-community:master Mar 13, 2023
etherwrangler pushed a commit to etherwrangler/devicetype-library that referenced this pull request Jul 16, 2023
* Update WS-C3750G-12S-E.yaml

* Update WS-C3750G-12S-S.yaml

* add missing cisco switch WS-C3650-48FQM-S

* add missing devices from our environment

* fixup

* model rename for HPE A5120 switches

* replaced power-port definitions with module-bay definitions on WS-3650-48FQM models

* add/fix weight values arcording to updated schema

* add power supply modules for WS-C3650-48FQM devices

* add "cisco-" prefix to all cisco device types

* fix duplicate entry issues in cisco and huawei devices

* fix invalid powerport type in cisco power module

* fix type schema validation error in UBR10012 device

* re-add YAML document start markers to all cisco device type files

* Update ASR-920-12CZ-A.yaml

Fix spacing issues

* Update ASR-920-12CZ-D.yaml

Fixed comment, removed extra newline.

* Update ASR-920-12SZ-D.yaml

Fixed comment, removed extra newline.

* Update ASR-920-4SZ-A.yaml

Fixed comment, removed extra newline.

* Update ASR-920-24SZ-M.yaml

Fixed comment, removed extra newline.

* Update SPA112.yaml

Fixed comments. Unnecessary newline removed.

* Update N540-ACC-SYS.yaml

Fixed description. Unnecessary newline removed.

* Update WS-C3750X-48P-S.yaml

Fixed comments. Unnecessary newline removed.

* Update Meraki-MS220-24P.yaml

Reverted description newlines

* Update PWR-C2-1025WAC.yaml

* Update PWR-C2-250WAC.yaml

* Update PWR-C2-640WAC.yaml

* Update PWR-C2-640WDC.yaml

* Update S3100-8TP-PWR-EI.yaml

Removed non-manufacturer datasheet comment

* Update HP-5120-48G-POE-4SFP-EI.yaml

Fixed model/slug

* Update HP-5120-24G-POE-4SFP-EI.yaml

* Update HP-5120-48G-POE-4SFP-EI.yaml

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

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

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

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

* all C3850 models have dual independant PSU bays

* add PSU modules for C3850 and C3750X model switches

* all C3750X models have dual independant PSU bays

* typo fix

* C3650-##FQM series are the only fixed PSU models in the C3650 line

* All C3650 switches (except minis) have two modular PSU slots

* Update WS-C3850-48XS-E.yaml

Added weight, modular PSUs and modular FANs

* Update WS-C3850-48XS-E.yaml

* Update WS-C3850-48XS-E.yaml

Removed network module since according to datasheet and pictures the 3850-48XS-E does not have a swappable module bay

* Update WS-C3850-48XS-E.yaml

* Added position attribute to newly created PSU module-bays

* Added redundant power supplies

* Moving console, power and module bays up

* added weight to new files

* Added positions to PSU module bays

* rearranged module bays

---------

Co-authored-by: Daniel W. Anner <daniel.anner@danstechsupport.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants