Skip to content

Fix: Mismatch between plugin cfg name and its internal name#3334

Merged
ipspace merged 1 commit intodevfrom
skip-cfg-plugin
Apr 17, 2026
Merged

Fix: Mismatch between plugin cfg name and its internal name#3334
ipspace merged 1 commit intodevfrom
skip-cfg-plugin

Conversation

@ipspace
Copy link
Copy Markdown
Owner

@ipspace ipspace commented Apr 17, 2026

When generating config scripts (or mapped config files), the dots in plugin names are changed into "@" to avoid the Box dot-parsing functionality. That was not taken into account when comparing config names with skip_config list, resulting in mappings that had no corresponding config files.

This simple change fixes that problem

Also: updated the platform integration test to use both config deployment methods (scripts and Ansible).

When generating config scripts (or mapped config files), the dots
in plugin names are changed into "@" to avoid the Box dot-parsing
functionality. That was not taken into account when comparing config
names with skip_config list, resulting in mappings that had no
corresponding config files.

This simple change fixes that problem

Also: updated the platform integration test to use both config
deployment methods (scripts and Ansible).
Copy link
Copy Markdown

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

Fixes skip_config handling for config items whose internal names use @ (to avoid python-box dot parsing), preventing containerlab config template mappings from being generated for items the user explicitly skipped.

Changes:

  • Update containerlab provider config-template filtering to compare skip_config against de-@-ified names.
  • Update the platform integration topology text and add an explicit per-node netlab_config_mode override entry in the skip-config test topology.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tests/platform-integration/config/05-skip-config.yml Updates skip_config platform-integration scenario to exercise intended config deployment behaviors.
netsim/providers/clab.py Fixes skip_config comparison for @-encoded config/template names when building clab.config_templates.

Comment thread tests/platform-integration/config/05-skip-config.yml
@ipspace ipspace merged commit 205a09a into dev Apr 17, 2026
17 checks passed
@ipspace ipspace deleted the skip-cfg-plugin branch April 17, 2026 15:00
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] "skip_config" attribute does not work for devices configured with scripts

2 participants