aruba / pyaoscx

Python modules for AOS-CX
Apache License 2.0
37 stars 25 forks source link

Workaround to make mac.get() fetch Interfaces #19

Closed martbhell closed 2 years ago

martbhell commented 2 years ago

set the path to lowercase, calling:

system/vlans/1/macs/dynamic,00%3Aaa%3Abb%3Acc%3A00%3A11 works while system/vlans/1/macs/dynamic,00%3AAA%3ABB%3ACC%3ADD%3AEE does not.

payload change:

DEBUG:urllib3.connectionpool:https://cx6100.example.org:443 "GET /rest/v10.08/system/vlans/1/macs/dynamic,00%3Aaa%3Abb%3Acc%3A00%3A11 HTTP/1.1" 200 362

I am new to this code so unable to right now judge how bad this impacts other calls.

https://github.com/aruba/pyaoscx/blob/master/RELEASE-NOTES.md#notable-changes-2 has a bit about MAC module being supported after the recent architecture changes in pyaoscx.

I have ran a pip3 uninstall pyaoscx and then python setup.py install to install this branch.

Related to GitHub Issue #18

martbhell commented 2 years ago

Fixed in d5c30e824ee0e805edc9b181bfec8489ca7d1ad2