Giter Club home page Giter Club logo

vrni-subnet-vlan's Introduction

Maintained by: David Santos [email protected]

vrni-subnet-vlan

Bulk VLAN subnet mapping configuration for vRNI using bash script

Requirements: -curl

This script runs API calls using curl via bash script. It consists of 4 files:

-vrni-subnet-vlan.sh The script file. You should inform the user, password, domain and vRNI platform fqdn/ip in this file.

-vlan.list The configuration list file. You should inform the list of VLANs and subnets in this file. This script only accepts the format subnet/mask:vlanid eg. 192.168.110.0/24:10

-user-template.json Do not change this file. It's the template to authenticate and create the token needed for API calls in vRNI.

-template-vlan-subnet.json Do not change this file. It's the template to cofigure the VLANs/subnet mapping.

When running the script (sh vrni-subnet-vlan) it will authenticate and create a token in the vRNI Platform. It'll also create some other .txt files that will be used as a API payload data or log for further reference.

-header.txt it has the last http reader response containing 200/400 codes and JSESSION ids

-user.txt the credentials for authentication in json format that are used as payload to API calls

-token.txt the temporary token generated by thee first API call

-list2.txt the vlan subnet list after ponctuation normalization to be used as a reference list

-vlan-subnet.txt the vlan/subnet mapping in json format that are used as payload to API calls

-results.txt the last api call response containing all the vlan/subnet mapping conifguration

In order keep it clean the last line the script delete those files. In case troubleshooting is needed just comment that line.

Hope you enjoy and saves time with this script. Happy mapping.

David Santos

vrni-subnet-vlan's People

Contributors

dfgpsantos avatar

Watchers

 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.