dne-dna-code
dne-dna-code copied to clipboard
Documented call is GET /network-device/module/{id}, not query parameter
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.
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