{"id":49940196,"url":"https://github.com/network-unit-testing-system/nuts-containerlab-demo","last_synced_at":"2026-05-17T10:14:36.643Z","repository":{"id":187511718,"uuid":"676195760","full_name":"network-unit-testing-system/nuts-containerlab-demo","owner":"network-unit-testing-system","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-12T21:16:13.000Z","size":192,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T21:18:47.043Z","etag":null,"topics":["clab-topo","containerlab"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/network-unit-testing-system.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-08-08T16:35:43.000Z","updated_at":"2025-04-12T21:16:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2f6663e-0cf7-479e-8efe-78e30dd27944","html_url":"https://github.com/network-unit-testing-system/nuts-containerlab-demo","commit_stats":null,"previous_names":["network-unit-testing-system/nuts-containerlab-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/network-unit-testing-system/nuts-containerlab-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/network-unit-testing-system%2Fnuts-containerlab-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/network-unit-testing-system%2Fnuts-containerlab-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/network-unit-testing-system%2Fnuts-containerlab-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/network-unit-testing-system%2Fnuts-containerlab-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/network-unit-testing-system","download_url":"https://codeload.github.com/network-unit-testing-system/nuts-containerlab-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/network-unit-testing-system%2Fnuts-containerlab-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33134538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","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":["clab-topo","containerlab"],"created_at":"2026-05-17T10:14:34.435Z","updated_at":"2026-05-17T10:14:36.634Z","avatar_url":"https://github.com/network-unit-testing-system.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nuts-containerlab-demo\n\n![Tests Successful ](imgs/successful.png)\n\n\u003cdiv align=center\u003e\n\u003ca href=\"https://codespaces.new/network-unit-testing-system/nuts-containerlab-demo?quickstart=1\"\u003e\n\u003cimg src=\"https://gitlab.com/rdodin/pics/-/wikis/uploads/d78a6f9f6869b3ac3c286928dd52fa08/run_in_codespaces-v1.svg?sanitize=true\" style=\"width:50%\"/\u003e\n\u003c/a\u003e\n\u003c/div\u003e\n\n## Requirements\n\n - [containerlab](https://containerlab.dev/)\n - [gnmic](https://gnmic.openconfig.net/)\n\n## Lab\n\nThe lab is heavily based on the 5-stage Clos fabric from ContainerLab (https://containerlab.dev/lab-examples/min-5clos/).\n\nThe client1 is replaced with a Python container image and NUTS will be installed on it. Clients 2 to 4 are running a Linux container with an SSH service. \n\nThe router images are Nokia SR Linux. To be able to use NAPALM, the community driver (https://github.com/napalm-automation-community/napalm-srlinux) is used.\n\n### Nuts installation\n\nThe installation for NUTS can be found in [./configs/client1.sh](configs/client1.sh)\n\n## Start\n\n```bash\nsudo containerlab deploy -t setup.clos02.clab.yml\nchmod +x ./setup.sh\n./setup.sh\n```\n\nConnect to client1 and run network tests:\n\n```bash\ndocker exec -it clab-clos02-client1 bash\n\nroot@client1:/# cd /workspace/\nroot@client1:/workspace# ls -l\ntotal 12\ndrwxr-xr-x 2 1000 1000 4096 Aug  8 22:10 inventory\n-rw-r--r-- 1 1000 1000  225 Aug  8 20:55 nr-config.yaml\ndrwxr-xr-x 2 1000 1000 4096 Aug  9 08:12 tests\n\nroot@client1:/workspace# pytest -vv\n```\n\n## Stop\n\n```bash\nsudo containerlab destroy --cleanup\n```\n\n\n\n## Running Tests\n\nIn the best case, all tests will be successful (passed) or skipped. When the setup is executed, no test should fail.\n\n![Tests Successful ](imgs/successful.png)\n\nWhen we change tests we can see that tests fail now:\n\n```diff\n--- a/nuts_data/tests/test_Interfaces.yaml\n+++ b/nuts_data/tests/test_Interfaces.yaml\n     - groups:\n         - spine\n       name: ethernet-1/3\n       is_enabled: true\n       is_up: true\n       mtu: 9232\n-      speed: 100.0\n+      speed: 10.0\n```\n\n![Tests Failed](imgs/failed.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetwork-unit-testing-system%2Fnuts-containerlab-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetwork-unit-testing-system%2Fnuts-containerlab-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetwork-unit-testing-system%2Fnuts-containerlab-demo/lists"}