From ddf142b05bd312cfff6a6c3dec961f20779e076e Mon Sep 17 00:00:00 2001 From: Roman Dodin Date: Wed, 29 Nov 2023 21:10:20 +0100 Subject: [PATCH] added quit-config to unblock next potential config routines (#1750) --- nodes/vr_sros/vr-sros.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nodes/vr_sros/vr-sros.go b/nodes/vr_sros/vr-sros.go index 04ce82506..d7ac11971 100644 --- a/nodes/vr_sros/vr-sros.go +++ b/nodes/vr_sros/vr-sros.go @@ -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) {