Skip to content

Commit

Permalink
fix sonic postdeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Jun 15, 2021
1 parent 6c4d97e commit 3b65821
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions clab/clab.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3b65821

Please sign in to comment.