Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

port_update not working #6

Open
ewbree opened this issue May 1, 2023 · 0 comments
Open

port_update not working #6

ewbree opened this issue May 1, 2023 · 0 comments

Comments

@ewbree
Copy link

ewbree commented May 1, 2023

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. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant