Replies: 2 comments 2 replies
-
I think the list is dynamically built here. You might be able to use that directly. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I commented in Slack, but I don't really see the need for this (open to discussions on it). Currently you could just use try/except to handle (will get NotImpletedError if not supported). Or you could copy/reuse that |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi NAPALM maintainers,
It would be great if there was some central functionality which provided NAPALM consumers a dictionary of the table shown in the getters support documentation:
Below is my attempt of using
BeautifulSoup
to web scrape this page and dynamically generate a dictionary of lists:NOTE: You would have to sort out the
Logger
variable for logging, but hopefully you get the pointBelow are the outputs:
sample_napalm_cleaned_getters_results.json
sample_napalm_raw_getters_results.json
Anyway, it would be cool if there was internal functionality offered to retrieve these lists. Whilst the solution above works, it's obviously fragile to many factors such as the table formatting changing on the official docs website.
It would also allow tools like this to dynamically generate the static getter lists.
Beta Was this translation helpful? Give feedback.
All reactions