Skip to content

Set containerlab version in installation configuration#2514

Merged
ipspace merged 1 commit intodevfrom
clab-version
Jul 12, 2025
Merged

Set containerlab version in installation configuration#2514
ipspace merged 1 commit intodevfrom
clab-version

Conversation

@ipspace
Copy link
Owner

@ipspace ipspace commented Jul 9, 2025

The containerlab installation script expects the CONTAINERLAB_VERSION environment variable to contain the target clab version. We had to modify the installation script each time we wanted to change the version; this commit introduces an alternative mechanism and bumps the containerlab version to 0.68.0:

  • The environment variables depending on system defaults are specified in the install.yml configuration file
  • CONTAINERLAB_VERSION environment variable depends on clab.version value (now set to 0.68.0)
  • The 'netlab install' command sets the environment variables specified in the install.yml configuration file before starting the scripts

Collateral fix:

  • 'netlab install' recognized the 'dry-run' flag but did not pass it to 'external_commands' module.

Fixes #2498

The containerlab installation script expects the CONTAINERLAB_VERSION
environment variable to contain the target clab version. We had to
modify the installation script each time we wanted to change the
version; this commit introduces an alternative mechanism and bumps
the containerlab version to 0.68.0:

* The environment variables depending on system defaults are specified
  in the install.yml configuration file
* CONTAINERLAB_VERSION environment variable depends on clab.version
  value (now set to 0.68.0)
* The 'netlab install' command sets the environment variables specified
  in the install.yml configuration file before starting the scripts

Collateral fix:
* 'netlab install' recognized the 'dry-run' flag but did not pass it to
  'external_commands' module.

Fixes #2498
@ipspace ipspace merged commit 123d891 into dev Jul 12, 2025
11 checks passed
@ipspace ipspace deleted the clab-version branch July 12, 2025 08:06
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.

[BUG] Bump containerlab version to 0.68.0

1 participant