Commit 5281e81
authored
Fix: no underscores in topology.name generated from input directory (#2497)
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 #24241 parent 24d5fa0 commit 5281e81
1 file changed
+28
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
18 | 42 | | |
19 | 43 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 44 | + | |
24 | 45 | | |
25 | 46 | | |
26 | 47 | | |
| |||
29 | 50 | | |
30 | 51 | | |
31 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
32 | 56 | | |
33 | 57 | | |
34 | 58 | | |
| |||
0 commit comments