dne-dna-code icon indicating copy to clipboard operation
dne-dna-code copied to clipboard

Documented call is GET /network-device/module/{id}, not query parameter

Open annegentle opened this issue 6 years ago • 1 comments

Based on the DNA Center documentation, this line should not work but it does, surprise! 🎉 This works in the current solution:

tmp_url = tmp_url + 'network-device/module?deviceId=%s' % device_id

Based on docs, this should work:

tmp_url = tmp_url + 'network-device/module/%s' % device_id

Eventually figure out which it is implemented as and make sure docs/code match.

annegentle avatar Jun 10 '18 14:06 annegentle

Below is what worked for me. deviceId requires a capital 'I' as its case sensitive.

tmp_url = tmp_url + 'network-device/module?deviceId=%s' % device_id

ianmaskellntt avatar Mar 17 '20 02:03 ianmaskellntt