You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using the previous version of netbox and I was able to run Napalm Methods using the following API endpoint, sending the netbox device id and the method:
exposes the model "Napalm Platform Config" (as defined by the napalm plugin)
.. meaning the /{id} part is the PK of a platformconfig object .. NOT a device id
yes. one could add more parameters (&target_device_id=...)
.. but that negates the whole purpose of this model
(predefined mapping from "device.platform" value to either "napalm driver" or None)
Also, passing bothplatformconfig.pk and device.pk to the API would be
redundant (device.platform implies the driver)
conflict-prone (platformconfig "IOS" vs. non-IOS-device)
Hi Team,
I was using the previous version of netbox and I was able to run Napalm Methods using the following API endpoint, sending the netbox device id and the method:
/dcim/device/{id}/napalm
Using napalm as method, seems the endpoint is:
/api/plugins/netbox_napalm_plugin/napalmplatformconfig/{id}/napalm/
I can't find a way to send the method I want to run.
Am I missing something?
Thanks!
The text was updated successfully, but these errors were encountered: