Skip to content

Fix: no underscores in topology.name generated from input directory#2497

Merged
ipspace merged 1 commit intodevfrom
topo-name
Jul 7, 2025
Merged

Fix: no underscores in topology.name generated from input directory#2497
ipspace merged 1 commit intodevfrom
topo-name

Conversation

@ipspace
Copy link
Owner

@ipspace ipspace commented Jul 7, 2025

Underscores in topology.name are used by clab to generate hostnames, and some Linux distros don't grasp that a clumsy person might have underscores in hostnames.

This fix ensures there are no weird characters in topology.name that is generated from the input directory (and 'default' is used when nothing is left after the cleanup). We don't check what the user specifies in the 'name' argument (they should know better ;)

Fixes #2424

Underscores in topology.name are used by clab to generate hostnames,
and some Linux distros don't grasp that a clumsy person might have
underscores in hostnames.

This fix ensures there are no weird characters in topology.name that
is generated from the input directory (and 'default' is used when
nothing is left after the cleanup). We don't check what the user
specifies in the 'name' argument (they should know better ;)

Fixes #2424
@ipspace ipspace requested a review from DanPartelly July 7, 2025 07:37
Copy link
Collaborator

@DanPartelly DanPartelly left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thank you.

@ipspace ipspace merged commit 5281e81 into dev Jul 7, 2025
9 checks passed
@ipspace ipspace deleted the topo-name branch July 7, 2025 16:39
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.

[DOC] Another Gotcha - lab directory names

2 participants