Skip to content

Commit

Permalink
Merge pull request #1348 from srl-labs/rn-0.40
Browse files Browse the repository at this point in the history
Added rn 0.40
  • Loading branch information
hellt authored Apr 28, 2023
2 parents 6508bf1 + 50cd85b commit 8c9b54f
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 4 deletions.
3 changes: 2 additions & 1 deletion clab/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ func (c *CLab) processStartupConfig(nodeCfg *types.NodeConfig) error {
log.Debugf("Node %q startup-config is an embedded config: %q", nodeCfg.ShortName, p)
// for embedded config we create a file with the name embedded.partial.cfg
// as embedded configs are meant to be partial configs
absDestFile := c.TopoPaths.StartupConfigDownloadFileAbsPath(nodeCfg.ShortName, "embedded.partial.cfg")
absDestFile := c.TopoPaths.StartupConfigDownloadFileAbsPath(
nodeCfg.ShortName, "embedded.partial.cfg")

err = utils.CreateFile(absDestFile, p)
if err != nil {
Expand Down
3 changes: 2 additions & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ func getLatestVersion(ctx context.Context, vc chan string) { // skipcq: RVV-A000
},
}

req, err := http.NewRequestWithContext(ctx, "HEAD", fmt.Sprintf("%s/releases/latest", repoUrl), nil)
req, err := http.NewRequestWithContext(ctx, "HEAD",
fmt.Sprintf("%s/releases/latest", repoUrl), nil)
if err != nil {
log.Debugf("error occurred during latest version fetch: %v", err)
return
Expand Down
15 changes: 15 additions & 0 deletions docs/rn/0.40.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Release 0.40

:material-calendar: 2023-04-28 · :material-list-status: [Full Changelog](https://github.com/srl-labs/containerlab/releases)

## IPv4/6 SANs for SR Linux

In #1345 we added support for IPv4/6 SANs for SR Linux nodes. With this addition, the certificate will contain IPv4/6 addresses assigned by the container runtime as SANs, so TLS connections can be established using these addresses.

## Miscellaneous

* SR Linux variants D4 and H4 have been added #1339
* Deploy command honors Ctrl-C and cleans up interrupted deployment #1340
* SR Linux agent path can now be a remote HTTP(S) URL #1336
* Improvements to the license handling process #1330
* Doc examples updated to comply with changes in SR Linux 23.3.1 #1341
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ nav:
- 5-stage Clos topology: lab-examples/templated02.md
- RARE/freeRtr: lab-examples/rare-freertr.md
- Release notes:
- "0.40": rn/0.40.md
- "0.39": rn/0.39.md
- "0.38": rn/0.38.md
- "0.37": rn/0.37.md
Expand Down
3 changes: 2 additions & 1 deletion nodes/default_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ func (d *DefaultNode) VerifyLicenseFileExists(_ context.Context) error {
// license is not required
return nil
default:
return fmt.Errorf("unknown license policy value %s for node %s kind %s", d.LicensePolicy, d.Config().ShortName, d.Cfg.Kind)
return fmt.Errorf("unknown license policy value %s for node %s kind %s",
d.LicensePolicy, d.Config().ShortName, d.Cfg.Kind)
}
}
// if license is provided check path exists
Expand Down
2 changes: 1 addition & 1 deletion utils/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func CopyFile(src, dst string, mode os.FileMode) (err error) {
return CopyFileContents(src, dst, mode)
}

// IsHttpUri check if the url is a downloadable uri
// IsHttpUri check if the url is a downloadable uri.
func IsHttpUri(s string) bool {
return strings.HasPrefix(s, "http://") || strings.HasPrefix(s, "https://")
}
Expand Down

0 comments on commit 8c9b54f

Please sign in to comment.