Skip to content

port_update not working #6

@ewbree

Description

@ewbree

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions