Skip to content

Commit

Permalink
srl admin linuxadmin keys in config starting at 23.10
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Aug 9, 2023
1 parent 635aecf commit 910b6e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodes/srl/srl.go
Original file line number Diff line number Diff line change
Expand Up @@ -542,9 +542,9 @@ func (n *srl) addDefaultConfig(ctx context.Context) error {

n.filterSSHPubKeys()

// in srlinux >= v23.7+ linuxadmin and admin user ssh keys can only be configured via the cli
// in srlinux >= v23.10+ linuxadmin and admin user ssh keys can only be configured via the cli
// so we add the keys to the template data for rendering.
if semver.Compare(n.swVersion.String(), "v23.7") >= 0 || n.swVersion.major == "0" {
if semver.Compare(n.swVersion.String(), "v23.10") >= 0 || n.swVersion.major == "0" {
tplData.SSHPubKeys = catenateKeys(n.sshPubKeys)
}

Expand Down

0 comments on commit 910b6e6

Please sign in to comment.