Commit 4e57a71
authored
Generate the lab topology with a plain image name, not a registry address (#22)
* Generate the lab topology with a plain image name, not a registry address
`examples/lab/topology.yaml` is committed and fetched at a tag by netclab-xp,
which reads it as documentation as much as it runs it. It named
`localhost:5001/netclab/ceos:4.36.1F` -- an address that is correct only on a
machine running this repository's bring-up script, and meaningless everywhere
else. A reader following netclab-xp's documentation imports cEOS with
`docker import` and `kind load`, which leaves it as `ceos:4.36.1F`, so the
fetched topology sent them to a registry they do not have.
The generator's default becomes that plain name. `--image` already existed and
is unchanged, so anything wanting a registry can still ask for one.
kind-up.sh is the one consumer that does. It now derives the registry address
itself and rewrites a temp copy rather than the committed file -- the file is an
artifact other repositories fetch, and the golden test compares it to what the
generator produces. The EOS version still comes from the topology, so the model
keeps deciding which image the lab runs.
Also fixes a trap that the temp-copy trap would have replaced, leaving a
regenerated topology behind on exit.
* Release v0.1.6
The topology change is consumed by netclab-xp at a tag, so it needs one.1 parent 37ec3a2 commit 4e57a71
5 files changed
Lines changed: 33 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
31 | 41 | | |
32 | 42 | | |
33 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
198 | 207 | | |
199 | 208 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | 209 | | |
204 | 210 | | |
205 | 211 | | |
| |||
208 | 214 | | |
209 | 215 | | |
210 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
211 | 224 | | |
212 | 225 | | |
213 | | - | |
| 226 | + | |
214 | 227 | | |
215 | 228 | | |
216 | 229 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments