Skip to content

Add lab builder infrastructure for creating labs with containerlab on AWS#105

Merged
dhalperi merged 1 commit intomainfrom
spr/main/2cf163e0
Apr 20, 2026
Merged

Add lab builder infrastructure for creating labs with containerlab on AWS#105
dhalperi merged 1 commit intomainfrom
spr/main/2cf163e0

Conversation

@dhalperi
Copy link
Copy Markdown
Member

Add tooling to spin up EC2 instances with nested virtualization,
deploy Juniper vJunos-router via containerlab, and collect show
command outputs for lab-validation snapshots.

infra/ -- AWS EC2 lifecycle scripts:

  • ec2-launch.sh: provisions metal/nested-virt instance with KVM
  • ec2-setup.sh: installs Docker, containerlab, KVM tools; loads
    pre-built Docker images from S3
  • ec2-teardown.sh, ec2-status.sh: instance management
  • upload-image.sh, build-image.sh: image management for S3
  • README.md: end-to-end lab creation documentation
  • examples/: two-router eBGP topology with Junos configs

src/lab_builder/ -- Python library for lab operations:

  • containerlab deploy/inspect/destroy wrappers
  • SSH device interaction via netmiko
  • Convergence polling (BGP, OSPF, ISIS)
  • Show command collection with lab-validation file naming
  • Snapshot packaging into snapshots/ directory layout

Prompt:

Add tooling so that open source contributors can create new labs
using virtual router images and containerlab on AWS EC2, with
scripts for instance lifecycle, image management, device
interaction, and show command collection.

… AWS

Add tooling to spin up EC2 instances with nested virtualization,
deploy Juniper vJunos-router via containerlab, and collect show
command outputs for lab-validation snapshots.

infra/ -- AWS EC2 lifecycle scripts:
- ec2-launch.sh: provisions metal/nested-virt instance with KVM
- ec2-setup.sh: installs Docker, containerlab, KVM tools; loads
  pre-built Docker images from S3
- ec2-teardown.sh, ec2-status.sh: instance management
- upload-image.sh, build-image.sh: image management for S3
- README.md: end-to-end lab creation documentation
- examples/: two-router eBGP topology with Junos configs

src/lab_builder/ -- Python library for lab operations:
- containerlab deploy/inspect/destroy wrappers
- SSH device interaction via netmiko
- Convergence polling (BGP, OSPF, ISIS)
- Show command collection with lab-validation file naming
- Snapshot packaging into snapshots/ directory layout

----

Prompt:
```
Add tooling so that open source contributors can create new labs
using virtual router images and containerlab on AWS EC2, with
scripts for instance lifecycle, image management, device
interaction, and show command collection.
```

commit-id:2cf163e0
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.62%. Comparing base (5a9ebac) to head (ea342eb).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #105   +/-   ##
=======================================
  Coverage   83.62%   83.62%           
=======================================
  Files          86       86           
  Lines        3908     3908           
=======================================
  Hits         3268     3268           
  Misses        640      640           
Flag Coverage Δ
unittests 83.62% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dhalperi dhalperi enabled auto-merge (squash) April 20, 2026 20:08
Copy link
Copy Markdown
Member Author

@dhalperi dhalperi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed,

@dhalperi dhalperi merged commit 690922e into main Apr 20, 2026
101 checks passed
@dhalperi dhalperi deleted the spr/main/2cf163e0 branch April 20, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants