{"id":37092462,"url":"https://github.com/corentinptrl/cisconf","last_synced_at":"2026-01-14T11:15:17.233Z","repository":{"id":292673882,"uuid":"981593988","full_name":"CorentinPtrl/cisconf","owner":"CorentinPtrl","description":"Parses, generates and compares Cisco configurations","archived":false,"fork":false,"pushed_at":"2025-05-31T16:34:50.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-18T09:17:28.134Z","etag":null,"topics":["cisco","ios","ios-xe","network","networking","parser","router","switch"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CorentinPtrl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-11T13:15:29.000Z","updated_at":"2025-05-31T16:34:34.000Z","dependencies_parsed_at":"2025-05-11T14:36:55.011Z","dependency_job_id":null,"html_url":"https://github.com/CorentinPtrl/cisconf","commit_stats":null,"previous_names":["corentinptrl/cisconf"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/CorentinPtrl/cisconf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CorentinPtrl%2Fcisconf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CorentinPtrl%2Fcisconf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CorentinPtrl%2Fcisconf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CorentinPtrl%2Fcisconf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CorentinPtrl","download_url":"https://codeload.github.com/CorentinPtrl/cisconf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CorentinPtrl%2Fcisconf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28418057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","ios","ios-xe","network","networking","parser","router","switch"],"created_at":"2026-01-14T11:15:16.504Z","updated_at":"2026-01-14T11:15:17.227Z","avatar_url":"https://github.com/CorentinPtrl.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cisconf\n\nCisconf is a Go-based library for unmarshalling, marshalling, and comparing Cisco network configurations. It supports various Cisco configuration components such as VLANs, interfaces, OSPF, and EIGRP.\n\n## Features\n\n- Parse Cisco configuration files into Go structs.\n- Compare two Cisco configurations and generate a diff.\n- Supported components:\n    - VLANs\n    - Interfaces (Layer 2 and Layer 3)\n    - OSPF\n    - EIGRP\n\n## Usage\n\n### Parsing a Configuration\n\nUse the `cisconf.Unmarshal` function to parse a Cisco configuration string into a Go struct.\n\n```go\nvar vlan cisconf.Vlan\nconfig := \"vlan 300\\n name office\\n!\"\nerr := cisconf.Unmarshal(config, \u0026vlan)\nif err != nil {\n    panic(err)\n}\n```\n\n### Generating a Configuration\n\nUse the `cisconf.Marshal` function to generate a Cisco configuration string from a Go struct.\n\n```go\ngenerated, err := cisconf.Marshal(vlan)\nif err != nil {\n    panic(err)\n}\n```\n\n### Comparing Configurations\n\nUse the `cisconf.Diff` function to compare two Cisco configuration strings and generate a diff.\n\n```go\nsrc := cisconf.Vlan{Id: 300, Name: \"office\"}\ndest := cisconf.Vlan{Id: 300, Name: \"new_office\"}\ndiff, err := cisconf.Diff(src, dest)\nif err != nil {\n    panic(err)\n}\nfmt.Println(diff)\n```\n\n## Running Tests\n\nRun the test suite to validate the library's functionality:\n\n```bash\ngo test ./test\n```\n\n## Credits\nThis project is built upon the work of Johannes Bindriem in [Jap](https://github.com/Letsu/jap).\n\n## Contributing\n\n1. Fork the repository.\n2. Create a new branch for your feature or bugfix.\n3. Submit a pull request with a detailed description of your changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorentinptrl%2Fcisconf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorentinptrl%2Fcisconf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorentinptrl%2Fcisconf/lists"}