Skip to content

Conversation

@ipspace
Copy link
Owner

@ipspace ipspace commented Jan 29, 2026

Similar to 'netlab_config_exec' variable, this variable contains a list of commands that are appended to the node 'clab.exec' list.

Its current use case is the initial delay (implemented with 'sleep' command) when starting Dell OS10 containers.

Similar to 'netlab_config_exec' variable, this variable contains a
list of commands that are appended to the node 'clab.exec' list.

Its current use case is the initial delay (implemented with 'sleep'
command) when starting Dell OS10 containers.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds infrastructure support for a new netlab_start_exec group variable that allows adding commands to the containerlab clab.exec list. The primary use case is to add initial delays for containers like Dell OS10 that need extra time to start before configuration can proceed.

Changes:

  • Refactored duplicate code into a new add_clab_exec() helper function that generalizes adding exec commands from group variables
  • Added call to add_clab_exec() with netlab_start_exec in the node_post_transform method to support start-time exec commands
  • Updated add_default_config_mode() to use the new helper function for netlab_config_exec

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ipspace ipspace merged commit 1d45013 into dev Jan 29, 2026
11 checks passed
@ipspace ipspace deleted the clab-start-exec branch January 29, 2026 10:53
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