Skip to content

Commit ddf142b

Browse files
authored
added quit-config to unblock next potential config routines (#1750)
1 parent e1ae5e0 commit ddf142b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nodes/vr_sros/vr-sros.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,9 @@ func (s *vrSROS) applyPartialConfig(ctx context.Context, addr, platformName,
285285
// converting byte slice to newline delimited string slice
286286
cfgs := strings.Split(string(configContent), "\n")
287287

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

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

0 commit comments

Comments
 (0)