Skip to content

Add SONiC CLOS network lab#79

Merged
byteocean merged 4 commits intoironcore-dev:mainfrom
Giluerre:clos_emulation
Mar 17, 2026
Merged

Add SONiC CLOS network lab#79
byteocean merged 4 commits intoironcore-dev:mainfrom
Giluerre:clos_emulation

Conversation

@Giluerre
Copy link
Contributor

Proposed Changes

Add emulated CLOS topology based on sonic-vm and containerlab.

@github-actions github-actions bot added size/L documentation Improvements or additions to documentation labels Feb 18, 2026
@hardikdr hardikdr added the area/metal-automation Automation processes within the Metal project. label Feb 19, 2026
@hardikdr hardikdr added this to Roadmap Feb 19, 2026
@Giluerre Giluerre requested a review from byteocean February 20, 2026 10:43
@byteocean
Copy link
Contributor

I had the Connection refused issue when deploy.sh is executed. Is it normal?

Changes detected, applying configuration...
namespace/c9s-clos created
topology.clabernetes.containerlab.dev/clos created
Waiting for services to be ready...
Provisioning SONiC nodes...
Running init_setup.sh on 172.18.1.10
ssh: connect to host 172.18.1.10 port 22: Connection refused
Running init_setup.sh on 172.18.1.11
ssh: connect to host 172.18.1.11 port 22: Connection refused
Running init_setup.sh on 172.18.1.14
ssh: connect to host 172.18.1.14 port 22: Connection refused
Running init_setup.sh on 172.18.1.15
ssh: connect to host 172.18.1.15 port 22: Connection refused

==========================================
SONiC Lab Topology - External IPs
==========================================
client1 -> 172.18.1.12
client2 -> 172.18.1.13
sonic-leaf1 -> 172.18.1.10
sonic-leaf2 -> 172.18.1.11
sonic-spine1 -> 172.18.1.14
sonic-spine2 -> 172.18.1.15

Script ended successfully

@Giluerre
Copy link
Contributor Author

Regarding the "connection refused" issue: most of the time I don't get this error message, but I have seen it a few times. In those cases, the problem was that the VM did not reach a state where the SSH server was functional during the 180-second sleep period. Could you please try waiting an additional 2 minutes, or change the sleep to 300 seconds, and check whether the issue still persists?

@byteocean
Copy link
Contributor

@Giluerre thanks for replying. I tried with 300 seconds and the setup worked. In other projects, we had similar issues and we used backoff delay during retrying to enhance the experience, because hardcoded 300s is long time to wait.

Another general comments is that, instead of relying on the make setup-test-e2e in the Makefile, which should invoke real tests in my opinion, it would be good to have kind creation/destroying embedded also in your setup script, e.g., deploy.sh. Switching back-and-forth between sub-repos was a bit confusing at beginning.

Daniel Beres added 4 commits March 17, 2026 14:32
Signed-off-by: Daniel Beres <daniel.beres@sap.com>
Signed-off-by: Daniel Beres <daniel.beres@sap.com>
…makefile, automatically create Custom Resources

Signed-off-by: Daniel Beres <daniel.beres@sap.com>
Signed-off-by: Daniel Beres <daniel.beres@sap.com>
Copy link
Contributor

@byteocean byteocean left a comment

Choose a reason for hiding this comment

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

thanks @Giluerre. I am able to setup the environment and use agent_cli (e.g., ./agent_cli --address 172.18.1.12:57400 list interfaces) to talk to uploaded agents in VMs.

@byteocean byteocean merged commit 5cd2a1d into ironcore-dev:main Mar 17, 2026
11 checks passed
@github-project-automation github-project-automation bot moved this to Done in Roadmap Mar 17, 2026
@afritzler afritzler added the enhancement New feature or request label Mar 18, 2026
@afritzler afritzler changed the title feat: add SONiC CLOS network lab Add SONiC CLOS network lab Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/metal-automation Automation processes within the Metal project. documentation Improvements or additions to documentation enhancement New feature or request size/L

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Emulated environment based on containerlab for local development and demo

4 participants