Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions topo/node/juniper/juniper.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var (
// For committing a very large config
scrapliOperationTimeout = 300 * time.Second
// Wait for PKI cert infra
certGenTimeout = 10 * time.Minute
certGenTimeout = 15 * time.Minute
// Time between polls
certGenRetrySleep = 30 * time.Second
// Wait for config mode
Expand Down Expand Up @@ -130,7 +130,7 @@ func (n *Node) waitConfigInfraReadyAndPushConfigs(configs []string) error {
for time.Since(start) < configModeTimeout {
multiresp, err := n.cliConn.SendConfigs(configs)
Comment thread
marcushines marked this conversation as resolved.
if err != nil {
if strings.Contains(err.Error(), "errPrivilegeError") {
if strings.Contains(err.Error(), "errPrivilegeError") || strings.Contains(err.Error(), "errTimeoutError") {
log.Infof("Config mode not ready. Retrying in %v. Node %s, Resp %v", configModeRetrySleep, n.Name(), err)
} else {
return fmt.Errorf("failed pushing configs: %v", err)
Expand Down