From 3b65821579540569597ab6cf05d9ac31f24a4d72 Mon Sep 17 00:00:00 2001 From: Roman Dodin Date: Tue, 15 Jun 2021 21:06:27 +0200 Subject: [PATCH] fix sonic postdeploy --- clab/clab.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/clab/clab.go b/clab/clab.go index fa1f2f625..890ec8fd3 100644 --- a/clab/clab.go +++ b/clab/clab.go @@ -169,14 +169,13 @@ func (c *CLab) ExecPostDeployTasks(ctx context.Context, node *types.Node, lworke case "sonic-vs": log.Debugf("Running postdeploy actions for sonic-vs '%s' node", node.ShortName) - // TODO: change this calls to c.ExecNotWait // exec `supervisord` to start sonic services - _, _, err := c.Runtime.Exec(ctx, node.ContainerID, []string{"supervisord"}) + err := c.Runtime.ExecNotWait(ctx, node.ContainerID, []string{"supervisord"}) if err != nil { return err } - _, _, err = c.Runtime.Exec(ctx, node.ContainerID, []string{"/usr/lib/frr/bgpd"}) + err = c.Runtime.ExecNotWait(ctx, node.ContainerID, []string{"/usr/lib/frr/bgpd"}) if err != nil { return err }