Skip to content

Commit

Permalink
Rn 0.59.0 (#2255)
Browse files Browse the repository at this point in the history
* added rn

* remove sros test dependency
  • Loading branch information
hellt authored Oct 23, 2024
1 parent b4da97c commit 1a421f1
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ jobs:
- ixiac-one-basic-tests
- vxlan-tests
- kind-tests
- sros-tests
# - sros-tests
- fortigate-tests
- cisco_iol-tests

Expand Down
34 changes: 34 additions & 0 deletions docs/rn/0.59.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Release 0.59

:material-calendar: 2024-10-23 · :material-list-status: [Full Changelog](https://github.com/srl-labs/containerlab/releases)

## Per-stage exec hooks

Back in 0.51 when we introduced the stages support every stage had a single exec hook that allowed you to execute a command in a container when it enters/exits a stage. It was a good start, but it had one hole in it - it was not possible to execute a command on a host machine when a container enters/exits a particular stage.

Thanks to @steiler the stages support for execs became much more powerful in this release with allowing you to flexibly define where command is executed (host or container) and when (what stage and what event). Here is an example of a refactored exec hooks:

```yaml
nodes:
node1:
stages:
create-links:
exec:
- command: ls /sys/class/net/
target: container #(1)!
phase: on-enter #(2)!
```
1. `target` defaults to "container" and can be omitted. Possible values `container` or `host`
2. `phase` defaults to "on-enter" and can be omitted. Possible values `on-enter` or `on-exit`


Note, this is a breaking change if you used execs in the stages before.

## Miscellaneous

- fixed loading custom export templates #2240
- iptables kernel load to support compressed modules #2251
- fixed the release retrieval routine #2250
- Cisco IOL to support custom PIDs and randomized MACs #2239
- SR Linux kind drops support for mounted authz_keys file #2254
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ nav:
- 5-stage Clos topology: lab-examples/templated02.md
- Generic VM: lab-examples/generic_vm01.md
- Release notes:
- "0.59": rn/0.59.md
- "0.58": rn/0.58.md
- "0.57": rn/0.57.md
- "0.56": rn/0.56.md
Expand Down

0 comments on commit 1a421f1

Please sign in to comment.