Giter Club home page Giter Club logo

arubaos-switch-api-python's Introduction

arubaos-switch-python

These scripts are written for ArubaOS Switch API version 4.0.

Structure

  • REST API call functions are found in the /src folder.
  • Functions from the /src folder are combined to emulate network processes that are stored in the /workflows folder.
  • Data to be imported into functions is stored in the /sampledata folder.

How to run this code

There are different workflows covered in this repo under /workflows directory. Before starting ensure the switch REST API is enabled: switch# rest-interface

In order to run these scripts, please complete the steps below:

  1. install virtual env (refer https://docs.python.org/3/library/venv.html). Make sure python version 3 is installed in system.

    $ python3 -m venv switchenv
    
  2. Activate the virtual env

    $ source switchenv/bin/activate
    
  3. Install all packages required from requirements file

    (switchenv)$ pip install -r /arubaos-switch-api-python/requirements.txt
    
  4. Open the project arubaos-switch-api-python from an editor (eg: Pycharm)

  5. Set the project interpreter as the new virtual env created in step 1

  6. Go to corresponding data yaml of each workflow and give the correct switch ip and credentials

  7. Now you can run different workflows from arubaos-switch-api-python/workflows E.G. base_provision.py

arubaos-switch-api-python's People

Contributors

rajani-abraham avatar

Watchers

 avatar  avatar

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.