{"id":14128589,"url":"https://github.com/rememberYou/gen-cisco","last_synced_at":"2025-08-03T23:31:40.190Z","repository":{"id":57433440,"uuid":"89380900","full_name":"rememberYou/gen-cisco","owner":"rememberYou","description":"🧨 Generates Cisco scripts based on YAML files","archived":true,"fork":false,"pushed_at":"2018-07-10T12:29:18.000Z","size":165,"stargazers_count":31,"open_issues_count":3,"forks_count":8,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-16T10:36:44.074Z","etag":null,"topics":["basic","cisco","eigrp","etherchannel","generator","glbp","hsrp","jinja2","nat","ospf","packet-tracer","python","rip","router","scripts","serial","spanning-tree","ssh","switch","yaml"],"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/rememberYou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-25T16:08:18.000Z","updated_at":"2024-11-15T22:56:48.000Z","dependencies_parsed_at":"2022-08-27T23:53:16.057Z","dependency_job_id":null,"html_url":"https://github.com/rememberYou/gen-cisco","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rememberYou%2Fgen-cisco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rememberYou%2Fgen-cisco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rememberYou%2Fgen-cisco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rememberYou%2Fgen-cisco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rememberYou","download_url":"https://codeload.github.com/rememberYou/gen-cisco/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228571844,"owners_count":17938772,"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","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":["basic","cisco","eigrp","etherchannel","generator","glbp","hsrp","jinja2","nat","ospf","packet-tracer","python","rip","router","scripts","serial","spanning-tree","ssh","switch","yaml"],"created_at":"2024-08-15T16:01:52.790Z","updated_at":"2024-12-07T06:31:27.898Z","avatar_url":"https://github.com/rememberYou.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# ![Cisco Logo](assets/cisco.png \"Cisco logo\") gen-cisco\n\n![License](https://img.shields.io/badge/License-MIT-green.svg)\n![Version](https://img.shields.io/badge/version-1.2.9-blue.svg)\n\n`gen-cisco` is an API and CLI to facilitate the creation of your Cisco scripts\nusing a YAML file. This file groups a section for each protocol including the\nvalues to be replaced in the appropriate Cisco template.\n\nThe creation of these templates has been done during the various _CCNA_ training\ncourses offered by Cisco, using [Packet\nTracer](https://www.netacad.com/courses/packet-tracer-download/), a network\nsimulation and visualization tool. Therefore, some commands may need to be\nmodified on real hardware.\n\n---\n\n### Installation\n\nIt's as simple as that:\n\n```\npip install gen-cisco\n```\n\n---\n\n### Usage\n\n```\nUsage: gen-cisco.py [OPTIONS]\n\n  Generates Cisco scripts based on YAML files\n\n  Examples:\n    python gen-cisco.py -i examples/router.yml\n    python gen-cisco.py -i examples/router.yml -o r1.txt\n    python gen-cisco.py -i examples/router.yml -o r1.txt -v\n    python gen-cisco.py -i examples/router.yml -o r1.txt --no-comments -v\n    python gen-cisco.py -i examples/router.yml -o r1.txt --no-comments --no-headers -v\n    python gen-cisco.py -i examples/router.yml -o r1.txt --no-override\n\nOptions:\n  -i, --src FILENAME          The YAML file.\n  -o, --dest TEXT             The name of the generated script file.\n  --override / --no-override  Deletes the old file if it is overwritten.\n  --comments / --no-comments  Deletes comments in the generated script.\n  --headers / --no-headers    Deletes headers in the generated script.\n  -v, --verbose               Outputs the final script to the console.\n  --version                   Show the version and exit.\n  --help                      Show this message and exit.\n```\n\nAlternatively you can run this tool using Docker:\n\n```bash\n# Build the image\ndocker build -t gen-cisco .\n\n# Run the image\ndocker run -v $(pwd):/app gen-cisco python gen-cisco.py [OPTIONS]\n```\n\n---\n\n### Supported Features\n\nHere is a list of features configurable by the scripts:\n\n```\n basic               ➔ basic configuration for routers and switches\n eigrp               ➔ advanced distance-vector routing protocol\n etherchannel        ➔ port link aggregation technology used primarily on Cisco switches\n hsrp                ➔ Cisco redundancy protocol for establishing a fault-tolerant default gateway\n nat                 ➔ method of remapping one IP address space into another\n ospf                ➔ routing protocol for Internet Protocol networks\n rip                 ➔ one of the oldest distance-vector routing protocols\n ssh                 ➔ cryptographic network protocol for operating network services securely\n stp                 ➔ network protocol that builds a loop-free logical topology for Ethernet networks\n vtp                 ➔ protocol that propagates the definition of VLAN on the whole local area network\n```\n\nFor a complete list sorted by device, please visit the [wiki](https://github.com/rememberYou/gen-cisco/wiki/Supported-Features).\n\n---\n\n### Contributions\n\nAdding a new protocol to script as well as supporting a new device is easy. To\ndo that, first take a look at the [CONTRIBUTING](https://github.com/rememberYou/gen-cisco/blob/master/CONTRIBUTING.md)\nfile. Also, feel free to submit your bugs and suggestions by opening an issue in\nthe issue tracker, it would help us a lot.\n\n---\n\n### License\n\nCode is under the [MIT License](https://github.com/rememberYou/gen-cisco/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FrememberYou%2Fgen-cisco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FrememberYou%2Fgen-cisco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FrememberYou%2Fgen-cisco/lists"}