-
Notifications
You must be signed in to change notification settings - Fork 13
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
napalm-panos driver #10
Comments
@misho23-23 I was a little confused by the wording of this request, so let me repeat it back to you as I understand it and more generalized. To be more specific, you would like to check if a platform driver supports the getter used by a netbox-napalm feature. If it does not it should present the user with something like The other way I sort of read it was that for drivers like panos, you want a way to specify another getter to use in place of the getters netbox-napalm uses. Please verify my first understanding is correct. |
Hi @ryanmerolle, I'd like to know if is possible to somehow customize page of the PANOS device where by Sorry for explanation, I'm trying to describe as best as I can :) Thank you for your time! |
Yea That is what I was trying to say with the first write up. If the getter is not valid for a driver show the tab, but say why it cannot be populated. If you remove the environment tab, people will think its another issue. If the driver ever adds environment getter then nothing would need to be reverted for this approach. The approach also works with any other driver besides PANOS. |
Couple of options (although I like error trapping around a missing getter)... You can fork the napalm driver and add a get_environment method. Return an object with blank strings for the pieces (cpu, available_ram, used_ram, fans, temperature, power). Then (or second) find a way to get that data into a real function and submit it back upstream. |
Realizing that this has been a while. |
Hello,
Is your feature request related to a problem? Please describe.
I have panos driver as a part of Napalm, used in Netbox v3.5.0 and direction to panos device is: "dcim/devices/5/status/" but there is table "Environment" with associated method get_environment. Unfortunately, napalm-panos doesn't support this getter method instead of table "Device Facts" with get_facts is working ok. How can I remove this table "Environment" for panos devices in Netbox?
also
Device Config - dcim/devices/5/config/ is getting data but received config it's not formatted.
Describe the solution you'd like
remove table "Environment" with method get_environment "dcim/devices/5/status/" for all devices with platforms associated Napalm driver = panos.
format config output in XML
Thgank you!
The text was updated successfully, but these errors were encountered: