Giter VIP home page Giter VIP logo

arubaos-switch-api-python's People

Contributors

derekwanghpearuba avatar kelfox avatar pack3tl0ss avatar rajani-abraham avatar tchiapuziowong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arubaos-switch-api-python's Issues

Password parameter type issue

Password in sampledata/data.yaml has to be defined as string , the original example will cause switch returns Bad Request 400 error.
user: admin
password: admin ---> Looks like admin has to be replaced as "admin" so a correct Post request can be generated by Request Module and interpreted by switch

port_update not working

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.