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
The 'port_update' in /src/ports.py/ function in its core is not working. When doing an exact same manual API call with Postman by simply doing a call to: https://<host IP>:443/rest/v4/ports/9 with a correct cookie I get a time-out on the switch, no response whatsoever and the interface stays in its state it had before.
When I fill in a raw body with: {"id":"9"} I get a full JSON object response of the interface. (E.g. ID, is_port_up, is_dsnoop_port_trusted, etc...)
Nothing changes.
When I fill in a raw body with: {"id":"9","is_port_up":"true"} I get a full JSON object response of the interface. (E.g. ID, is_port_up, is_dsnoop_port_trusted, etc...)
Nothing changes.
When filling in a raw body with: {"id":"9","is_port_enabled":"true"} I get the response: { "message": "Wrong type for port enable" }
Whatever I tried the port doesn't change its admin status from up > down or down > up. Documentation of Aruba about the ArubaOS-S API is also too limited to get anywhere.
In any case the way it is shown in /src/ports.py will not work.
Or, I am doing something wrong myself. If so, would love a raw Python requests example for simply this function in itself. :)
The text was updated successfully, but these errors were encountered:
The 'port_update' in
/src/ports.py/
function in its core is not working. When doing an exact same manual API call with Postman by simply doing a call to:https://<host IP>:443/rest/v4/ports/9
with a correct cookie I get a time-out on the switch, no response whatsoever and the interface stays in its state it had before.When I fill in a raw body with:
{"id":"9"}
I get a full JSON object response of the interface. (E.g. ID, is_port_up, is_dsnoop_port_trusted, etc...)Nothing changes.
When I fill in a raw body with:
{"id":"9","is_port_up":"true"}
I get a full JSON object response of the interface. (E.g. ID, is_port_up, is_dsnoop_port_trusted, etc...)Nothing changes.
When filling in a raw body with:
{"id":"9","is_port_enabled":"true"}
I get the response:{ "message": "Wrong type for port enable" }
Whatever I tried the port doesn't change its admin status from up > down or down > up. Documentation of Aruba about the ArubaOS-S API is also too limited to get anywhere.
In any case the way it is shown in
/src/ports.py
will not work.Or, I am doing something wrong myself. If so, would love a raw Python requests example for simply this function in itself. :)
The text was updated successfully, but these errors were encountered: