{"id":20324599,"url":"https://github.com/netascode/terraform-nxos-config-validation","last_synced_at":"2025-03-04T10:21:59.311Z","repository":{"id":113758445,"uuid":"534217290","full_name":"netascode/terraform-nxos-config-validation","owner":"netascode","description":"Perform syntactic and semantic validation of YAML model for Terraform NX-OS Configuration Module","archived":false,"fork":false,"pushed_at":"2024-02-10T12:04:05.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-14T14:14:07.184Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/netascode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-09-08T13:10:09.000Z","updated_at":"2024-11-01T14:12:37.000Z","dependencies_parsed_at":"2024-02-06T02:15:36.942Z","dependency_job_id":null,"html_url":"https://github.com/netascode/terraform-nxos-config-validation","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/netascode%2Fterraform-nxos-config-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fterraform-nxos-config-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fterraform-nxos-config-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netascode%2Fterraform-nxos-config-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netascode","download_url":"https://codeload.github.com/netascode/terraform-nxos-config-validation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241827465,"owners_count":20026693,"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":[],"created_at":"2024-11-14T19:34:39.362Z","updated_at":"2025-03-04T10:21:59.281Z","avatar_url":"https://github.com/netascode.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Tests](https://github.com/netascode/terraform-nxos-config-validation/actions/workflows/test.yml/badge.svg)](https://github.com/netascode/terraform-nxos-config-validation/actions/workflows/test.yml)\n\n# Validation of Terraform NX-OS Configuration Module\n\nThis repository contains [Yamale](https://github.com/23andMe/Yamale) schema and [iac-validate](https://github.com/netascode/iac-validate) rules to perform syntactic and semantic validation of YAML model for [Terraform NX-OS Configuration Module](https://github.com/netascode/terraform-nxos-config).\n\nExample usage for correct YAML model file:\n```shell\n$ iac-validate -s schema.yaml -r rules nxos_model_example.yaml\n$\n```\n\nExample usage for incorrect YAML model file:\n```shell\n$ iac-validate -s schema.yaml -r rules nxos_model_example_with_errors.yaml\nERROR - Syntax error 'nxos_model_example_with_errors.yaml': vrfs.1.rd: Unexpected element\nERROR - Syntax error 'nxos_model_example_with_errors.yaml': vlans.3.vrf: Unexpected element\nERROR - Semantic error, rule 103.001: BGP peer template is not configured under root.bgp.template_peers (['root.bgp.vrfs.0.neighbors.0 - SPINE-PEERS2', 'root.bgp.vrfs.0.neighbors.1 - SPINE-PEERS3'])\nERROR - Semantic error, rule 100.001: VRF for ethernet interface is not configured under root.vrfs (['root.interfaces_ethernet.1/52.vrf - foo'])\nERROR - Semantic error, rule 100.002: VRF for loopback interface is not configured under root.vrfs (['root.interfaces_loopback.1.vrf - foo'])\nERROR - Semantic error, rule 101.001: Feature BGP is not enabled, but BGP configuraion is present. (['add `bgp` to root.features'])\n$\n```\n\n## Installation\n\nThis is the only package that needs to be installed is `iac-validate`. Python 3.6+ is required to install it.\n\n`iac-validate` can be installed in a virtual environment using `pip`:\n\n```shell\npip install iac-validate\n```\n\nReference: https://github.com/netascode/iac-validate#installation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetascode%2Fterraform-nxos-config-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetascode%2Fterraform-nxos-config-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetascode%2Fterraform-nxos-config-validation/lists"}