BMS_Configuration

To bind the multiple switches with VLan for bms automation

ā— External repository notice
This repository is now mirrored at "PLEASE UPDATE HERE - add External repo URL after code review is completed" Please inform a https://github.com/gve-sw/ organization admin of any changes to mirror them to the external repo

Contacts

  • Raveesh V
  • Darshan Kore
  • Vikram Goda
  • Nupur jain

Solution Components

  • Python
  • Paramiko
  • CSV

Python Setup

# create virtual environment
python3 -m venv venv

#activate virtual environment
source venv/bin/activate

#install dependent modules
pip install -r Requirements.txt

Configuration

Modify switches.csv and network.csv with required details

switches.csv
switch,hostname,port,username,password
s1,<hostname/IP>,22,<username>,<password>

network.csv
switch,vlanid,ipaddress,mac,interface
s1,x,<x.x.x.x>,xxxx.xxxx.xxx,xxx/x/1

Usage

Execute the following command to start the script

$ python apply_configuration.py -c network.csv -d switches.csv

LICENSE

Provided under Cisco Sample Code License, for details see LICENSE

CODE_OF_CONDUCT

Our code of conduct is available here

CONTRIBUTING

See our contributing guidelines here

DISCLAIMER:

Please note: This script is meant for demo purposes only. All tools/ scripts in this repo are released for use "AS IS" without any warranties of any kind, including, but not limited to their installation, use, or performance. Any use of these scripts and tools is at your own risk. There is no guarantee that they have been through thorough testing in a comparable environment and we are not responsible for any damage or data loss incurred with their use.
You are responsible for reviewing and testing any scripts you run thoroughly before use in any non-testing environment.

View code on GitHub
  • Owner

  • Contributors

    +1Github contributor
  • Categories

  • Programming Languages

    Python
  • License

    Other

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.