Uh oh!
There was an error while loading. Please reload this page.
Feature/platform mapper - #220
Conversation
98ea5bf to
6c828a0Comparejeffkala
commented
Mar 2, 2023
@bminnix curious for the use case here. Looks like all this logic just builds urls, but essentially you just need a mapper. Can we just create a NIST mapper instead? |
bminnix
commented
Mar 3, 2023
I believe we could. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
jeffkala
commented
Mar 8, 2023
Syncing with @bminnix on this ask offline |
qduk
commented
Apr 27, 2023
@bminnix Have you had a chance to review the feedback? |
bminnix
commented
May 1, 2023
I have some chat history with @jeffkala that I need to work on, I just have not had time to make the changes. Will try harder to make time. |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Can we re-evaluate this block? This is alot of conditionals, can we simplify anyway?
There was a problem hiding this comment.
So, this is actually the re-evaluated block 😂 , it was much larger and very nested.
Juniper has a pretty complex naming system and is why it's the only OS that we are focusing on parsing right now. Here is a video that kind of goes through the explanation of all the different parts of the version and why there are so many conditionals.
https://www.youtube.com/watch?v=UHW5kiJ9wOg
If you have some suggestions on how we could further improve this block, it would be very welcomed!!
qduk
commented
Aug 14, 2023
@bminnix Can you move the code in |
jeffkala
commented
Aug 22, 2023
Seems like something weird happened with commit history here? Seems like more changes are in this commit then I would anticipate. Was a rebase done or a merge that might have conflicted? |
There were conflicts when I checked the PR, so I rebased, resolved conflicts, and pushed. EDIT: Not sure what was wrong. Re-rebased and it all seems good now. |
21c4306 to
a18b1ffCompare… arguments instead of a dict
Adding property decorators
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
qduk
commented
Dec 7, 2023
@bminnix If you get the chance, can you take a look at Ken's comments? |
bminnix
commented
Jan 31, 2024
@itdependsnetworks I've worked to resolve the conversations. Please let me know if anything else is needed. |
qduk
commented
Feb 15, 2024
This looks good to me. I would think we want to include |
This reverts commit e835dc3.
* Creating a Platform Mapping utility for breaking down platforms into their bits * Updated the create_platform_object function parameters for positional arguments instead of a dict * Did not fix an Example of changed code. * Moving the junos_version_parser to its own function Adding property decorators * Refactor platform mapper. * Fix juniper nist urls fun * Fix juniper nist urls fun * Move nist and version parsers to separate files. Refactor. * Fix bugs. Update tests. * Redo object factory using base class. Rename factory fun. * Address linting issues. * Fix bug with get_nist_urls fun assignment. Rename object factory. * Changing file name back to os_version.py per request from Adam. * Creating a Platform Mapping utility for breaking down platforms into their bits * Updated the create_platform_object function parameters for positional arguments instead of a dict * Did not fix an Example of changed code. * Moving the junos_version_parser to its own function Adding property decorators * Refactor platform mapper. * Fix juniper nist urls fun * Fix juniper nist urls fun * Move nist and version parsers to separate files. Refactor. * Fix bugs. Update tests. * Redo object factory using base class. Rename factory fun. * Address linting issues. * Fix bug with get_nist_urls fun assignment. Rename object factory. * Changing file name back to os_version.py per request from Adam. * Fixing the import for os_version; Added Exception to the raise * Adding an ignore for mypy; This was discussed with Jeff Kala before implementing. * Corrected typo per review * Fixing bugs * Update netutils/platform_mapper.py Co-authored-by: Ken Celenza <ken@celenza.org> * Making changes requested by Ken. Still 5 sections to go. * Removing gets from fstrings * Committing more of Ken's suggestions; escape_list * Making changes to the isspecial evaluation per Ken's suggestion. * Small change to format for Black's happiness * Getting latest lock file to avoid conflicts * Had pylint errors * Had pylint errors * Had black errors after fixing pylint errors * Had black errors after fixing pylint errors * After fixing black errors, more pylint errors. * Black found an extra space. * Updating nist.py to shorten line length; fixing pytest results. * Adding a doc for nist.py * Updating the mkdocs.yml for NIST --------- Co-authored-by: Brandon Minnix <bminnix@Brandons-MacBook-Pro.local> Co-authored-by: Brandon Minnix <brandon.minnix@networktocode.com> Co-authored-by: Przemek Rogala <progala@progala.net> Co-authored-by: Ken Celenza <ken@celenza.org> Co-authored-by: Brandon Minnix <bminnix@Brandons-MacBook-Pro-2.local>
No description provided.