Skip to content

Commit

Permalink
Fix control agent networkd file names
Browse files Browse the repository at this point in the history
  • Loading branch information
Frostman committed May 29, 2024
1 parent 3259b36 commit 5594e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ctrl/controlagent/controlagent_ctrl.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func (r *Reconciler) buildNetworkd(serverName string, conns *wiringapi.Connectio
NextHops: nextHops,
}

name := strings.ToLower(fmt.Sprintf("00-hh-1--%s--%s--%s", cfg.Port, swName, swPort))
name := strings.ReplaceAll(strings.ToLower(fmt.Sprintf("00-hh-1--%s--%s--%s", cfg.Port, swName, swPort)), "/", "_")
networkd[name+".network"], err = executeTemplate(controlNetworkTmpl, cfg)
if err != nil {
return nil, errors.Wrapf(err, "error executing network template for conn %s", conn.Name)
Expand Down

0 comments on commit 5594e7f

Please sign in to comment.