Skip to content

Commit

Permalink
added quit-config to unblock next potential config routines (#1750)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt authored Nov 29, 2023
1 parent e1ae5e0 commit ddf142b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nodes/vr_sros/vr-sros.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,9 @@ func (s *vrSROS) applyPartialConfig(ctx context.Context, addr, platformName,
// converting byte slice to newline delimited string slice
cfgs := strings.Split(string(configContent), "\n")

// condfig snippets should not have commit command, so we need to commit manually
cfgs = append(cfgs, "commit", "/admin save")
// config snippets should not have commit command, so we need to commit manually
// and quit from the config mode
cfgs = append(cfgs, "commit", "/admin save", "quit-config")

mr, err := d.SendConfigs(cfgs)
if err != nil || (mr != nil && mr.Failed != nil) {
Expand Down

0 comments on commit ddf142b

Please sign in to comment.