{"id":19825305,"url":"https://github.com/tes3awy/cisco-configuration-using-python-jinja-csv","last_synced_at":"2025-07-27T15:39:57.652Z","repository":{"id":52809769,"uuid":"355226579","full_name":"Tes3awy/Cisco-Configuration-Using-Python-Jinja-CSV","owner":"Tes3awy","description":"Cisco Configuration Generator Template Using Python3, Jinja2, and CSV with Validation","archived":false,"fork":false,"pushed_at":"2023-01-28T22:38:48.000Z","size":167,"stargazers_count":36,"open_issues_count":0,"forks_count":16,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-01T13:46:35.725Z","etag":null,"topics":["cisco","cisco-configuration","cisco-ios","cisco-switches","ciscodevnet","csv","csv-files","jinja2","python","python-requirements","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tes3awy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-06T14:50:14.000Z","updated_at":"2025-03-12T13:26:48.000Z","dependencies_parsed_at":"2023-02-15T19:15:54.243Z","dependency_job_id":null,"html_url":"https://github.com/Tes3awy/Cisco-Configuration-Using-Python-Jinja-CSV","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Tes3awy/Cisco-Configuration-Using-Python-Jinja-CSV","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2FCisco-Configuration-Using-Python-Jinja-CSV","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2FCisco-Configuration-Using-Python-Jinja-CSV/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2FCisco-Configuration-Using-Python-Jinja-CSV/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2FCisco-Configuration-Using-Python-Jinja-CSV/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tes3awy","download_url":"https://codeload.github.com/Tes3awy/Cisco-Configuration-Using-Python-Jinja-CSV/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2FCisco-Configuration-Using-Python-Jinja-CSV/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267378716,"owners_count":24077794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cisco","cisco-configuration","cisco-ios","cisco-switches","ciscodevnet","csv","csv-files","jinja2","python","python-requirements","python3"],"created_at":"2024-11-12T11:07:15.336Z","updated_at":"2025-07-27T15:39:57.633Z","avatar_url":"https://github.com/Tes3awy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![published](https://static.production.devnetcloud.com/codeexchange/assets/images/devnet-published.svg)](https://developer.cisco.com/codeexchange/github/repo/Tes3awy/Cisco-Configuration-Using-Python-Jinja-CSV)\n[![Tested on Python 3.11.1](https://img.shields.io/badge/Tested%20-Python%203.11.1-blue.svg?logo=python)](https://www.python.org/downloads)\n[![Contributions Welcome](https://img.shields.io/static/v1.svg?label=Contributions\u0026message=Welcome\u0026color=0059b3)]()\n[![License](https://img.shields.io/github/license/Tes3awy/Cisco-Configuration-Using-Python-Jinja-CSV)](hhttps://github.com/Tes3awy/Cisco-Configuration-Using-Python-Jinja-CSV)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\n# Generate Cisco Configuration Template Using Python3, Jinja2, and CSV with Validation\n\nThis program is designed to generate a configuration template for Cisco Catalyst/Nexus switches.\n\n## Table of Contents\n\n1. [Requirements](#requirements)\n2. [Getting Started](#getting-started)\n3. [Installation](#installation)\n4. [Usage](#usage)\n5. [Preview](#preview)\n6. [Helpful Tips](#helpful-tips)\n7. [TODOs](#todos)\n\n---\n\n### Requirements\n\n1. [Python @3.11.1](https://www.python.org/)\n2. [Jinja2 @3.1.2](https://jinja.palletsprojects.com/en/3.1.x/)\n\n### Getting Started\n\n```bash\n│   cisco_config_generator.py\n│   cisco_validation.py\n│   switch.j2\n│   requirements.txt\n│   README.md\n│   .gitignore\n│   LICENSE\n│\n├───assets\n│       preview.png\n│\n├───configs\n│       .gitkeep\n│\n└───CSV\n        01_params.csv\n        02_vlans.csv\n        03_etherchannels.csv\n        04_port_mapping.csv\n\n```\n\n### Installation\n\n```bash\n$ git clone https://github.com/Tes3awy/Cisco-Configuration-Using-Python-Jinja-CSV.git\n$ cd Cisco-Configuration-Using-Python-Jinja-CSV\n$ python -m venv .venv --upgrade-deps\n# Activate Virtual Environment\n$ pip install -r requirements.txt\n```\n\n### Usage\n\n1. Open each `.csv` file _respectively_ and add the configurations that meet your needs. _(The CSV files are populated with a sample configuration already)_\n2. Open terminal/cmd.\n3. Run `python cisco_config_generator.py`.\n\nFirst, a `json_schema.json` file is created _(if not created already)_ from your configuration in CSV files. Then, `json_schema.json` is validated against a set of rules in `validate_config.py`.\n\nVoila :sparkles:! Your configuration will be created an placed in configs directory.\n\n### Preview\n\n![Preview](assets/preview.png)\n\n### Helpful Tips\n\n1. **DO NOT** copy/paste the whole configuration all at once to your device. Divide the configuration template into multiple sections.\n2. Always save your configuration with the `copy running-config startup-config` command. [See Why](https://networkengineering.stackexchange.com/questions/52309/diffrence-between-wr-and-copy-running-config-to-startup-config#answer-52310)\n\n### TODOs\n\n- [x] ~~Validate input fields in CSV files~~.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftes3awy%2Fcisco-configuration-using-python-jinja-csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftes3awy%2Fcisco-configuration-using-python-jinja-csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftes3awy%2Fcisco-configuration-using-python-jinja-csv/lists"}