-
Notifications
You must be signed in to change notification settings - Fork 950
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
Extreme 9k #1067
Extreme 9k #1067
Conversation
Any guidance on resolving this? last I checked 0.01 would go into 10.11 just fine, and the yaml matches up with the sample output format shown in the main readme.md
device-types/Extreme Networks/8520-48Y-8C.yaml failed validation: 10.11 is not a multiple of 0.01 Failed validating 'multipleOf' in schema['properties']['weight']['items']['properties']['value']: On instance['weight'][0]['value']: Did a bit of poking around, changing the value to 1011 <<< integer, and not a float, caused the check to pass. This seems to potentially be an issue in jsonschema, https://github.com/python-jsonschema/jsonschema/blob/main/jsonschema/_validators.py line 181 If I am reading the code right jsonschema is running into a rounding error.
|
Hey @mayafox, the weight definition is brand new and we are clearly still tackling some issues around that. I will use this as a testing ground to fix that issue as well. I also would just like to confirm, the correct weight should be 10.11 KG, right? |
Updated weight back to 10.11
Updated weight back to 10.11
@mayafox I started to update some of the weights but I do not know the actual values. I have merged the master branch back into yours, so you should be able to correct the weight values now. Can you please update the weights? Please also make sure the weights are as accurate as possible, and in a |
@danner26 Also what's the preferred format for the comments you requested? |
Hardware info url yes, but if you have both feel free to throw them both
in!
…On Thu, Jan 26, 2023, 19:00 mayafox ***@***.***> wrote:
@danner26 <https://github.com/danner26>
Changes in support of fixing the weight look good!
Device documentation should be the hardware information URL, and not the
OS admin guides I presume?
—
Reply to this email directly, view it on GitHub
<#1067 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB6JNI2WZZQWX7KYRKGRRF3WUMFYZANCNFSM6AAAAAAUG6X5S4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Co-authored-by: DESNOË Olivier (Canal Plus) <olivier.desnoe@canal-plus.com>
@cwegener Thanks for the heads up, I am guessing that this issue isnt an actual solution then. Any idea why it works correctly then? Do you have a proper solution for this? |
Nope. I just noticed the obvious error and thought I point it out. I'm in a similar situation like yourself. I'm aware of how floating point arithmetic works in Python (and any other language using binary for floating point) but also have no experience on how to properly apply libraries like My case is even more complex as I ran into this issue in the context of a distributed system where the JSON Schema spec is the 'connecting' tissue but the implementations that send data to each other are blissfully unaware of each other. (https://github.com/singer-io/getting-started/blob/master/docs/SPEC.md) |
Gotcha, I appreciate you pointing it out @cwegener ! Here's to hoping we find a solution |
Updated weight back to 10.11
Updated weight back to 10.11
@danner26 Done! |
I am a little confused, what is going on with all of the renames such as the We shouldnt be removing or renaming device definitions, you should add new files for different devices. Unless I am missing something. Can you explain? @mayafox |
So there's a couple issues here with the -AC models. I chatted with one of my colleagues on adding in all the various Power supply (AC/DC) and air-flow combinations that are listed, and they viewed it as a moot point and not worth the effort (not sure they fully understood the question either). I also asked you what the projects preference was, but you missed that question as well. I don't mind doing the work to add in the variations, but a clear direction would be good. For the moment I dropped the -AC from the previously submitted items, and will await your response on what I need to do on this matter. |
Sorry about that, I totally missed that questions. So the only thing the -AC is used for is when the AC power module is installed? If that is the case, then I agree it is a moot point. I think modelling them without the AC makes sense, and then the modules that you install (AC or DC power supply) is what will determine which power type it uses. Is that understanding where your changes came from? |
Yes, and for some boxes (MLX and the 9920) it is possible to have both AC and DC power supplies installed and in service. Airflow is generally uniform, and can impact the power supplies choices as well, but most of the platforms allow you to switch by swapping the AC PSU for DC, and swapping fans and PSU's to change the air flow. It's a mess of permutations I would rather not poke if I can avoid it. |
So I see what the mess is here, this is quite the issue. Let me ask you this, if I were to go to the vendor and ask for a BR-MLXE-16-MR2-AC, would they provide me with the unit and the AC power supplies? Like do they actually list for sale Because this library acts as a source of truth for a specific device, I do not think we should be removing/renaming legitimate models even if they do have the option to be changed on the fly. If a product can be purchased by default under the Does that make sense? Unless you cannot buy a |
@danner26 "Let me ask you this, if I were to go to the vendor and ask for a BR-MLXE-16-MR2-AC, would they provide me with the unit and the AC power supplies?" Based of the ordering information page from the data sheet, yeap, they used to list the bare chassis sans mgmt, and power, but that's been removed,
|
@danner26 |
Hey @mayafox take your time.. let me know when you are ready for me to review it again |
This PR has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further progress is made. |
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:
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. |
Closing for rework of the code. |
Added in Extreme 9920, 8520, and 8720 products, fixed incorrect wattage for 7400-48y, and removed mentions of AC from the model and parts for the MLXe and SLX 9xxx boxes.