Skip to content

Commit

Permalink
Increase default timeout to 10 minutes (#13)
Browse files Browse the repository at this point in the history
With around 20 rules the 10 seconds timeout always fails on refresh.
Ideally the refresh could be speed up without locking but for now this avoids the error.

Co-authored-by: angelnu <git@angelnucom>
  • Loading branch information
angelnu and angelnu authored May 23, 2022
1 parent 400cd7e commit 4ae8d07
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions vyos/data_source_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ func dataSourceConfig() *schema.Resource {
},
},
Timeouts: &schema.ResourceTimeout{
Read: schema.DefaultTimeout(10 * time.Second),
Default: schema.DefaultTimeout(10 * time.Second),
Read: schema.DefaultTimeout(10 * time.Minute),
Default: schema.DefaultTimeout(10 * time.Minute),
},
}
}
Expand Down
10 changes: 5 additions & 5 deletions vyos/resource_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ func resourceConfig() *schema.Resource {
},
},
Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(10 * time.Second),
Read: schema.DefaultTimeout(10 * time.Second),
Update: schema.DefaultTimeout(10 * time.Second),
Delete: schema.DefaultTimeout(10 * time.Second),
Default: schema.DefaultTimeout(10 * time.Second),
Create: schema.DefaultTimeout(10 * time.Minute),
Read: schema.DefaultTimeout(10 * time.Minute),
Update: schema.DefaultTimeout(10 * time.Minute),
Delete: schema.DefaultTimeout(10 * time.Minute),
Default: schema.DefaultTimeout(10 * time.Minute),
},
}
}
Expand Down
10 changes: 5 additions & 5 deletions vyos/resource_config_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ func resourceConfigBlock() *schema.Resource {
},
},
Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(10 * time.Second),
Read: schema.DefaultTimeout(10 * time.Second),
Update: schema.DefaultTimeout(10 * time.Second),
Delete: schema.DefaultTimeout(10 * time.Second),
Default: schema.DefaultTimeout(10 * time.Second),
Create: schema.DefaultTimeout(10 * time.Minute),
Read: schema.DefaultTimeout(10 * time.Minute),
Update: schema.DefaultTimeout(10 * time.Minute),
Delete: schema.DefaultTimeout(10 * time.Minute),
Default: schema.DefaultTimeout(10 * time.Minute),
},
}
}
Expand Down
10 changes: 5 additions & 5 deletions vyos/resource_config_block_tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ func resourceConfigBlockTree() *schema.Resource {
},
},
Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(10 * time.Second),
Read: schema.DefaultTimeout(10 * time.Second),
Update: schema.DefaultTimeout(10 * time.Second),
Delete: schema.DefaultTimeout(10 * time.Second),
Default: schema.DefaultTimeout(10 * time.Second),
Create: schema.DefaultTimeout(10 * time.Minute),
Read: schema.DefaultTimeout(10 * time.Minute),
Update: schema.DefaultTimeout(10 * time.Minute),
Delete: schema.DefaultTimeout(10 * time.Minute),
Default: schema.DefaultTimeout(10 * time.Minute),
},
}
}
Expand Down
10 changes: 5 additions & 5 deletions vyos/resource_static_host_mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ func resourceStaticHostMapping() *schema.Resource {
},
},
Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(10 * time.Second),
Read: schema.DefaultTimeout(10 * time.Second),
Update: schema.DefaultTimeout(10 * time.Second),
Delete: schema.DefaultTimeout(10 * time.Second),
Default: schema.DefaultTimeout(10 * time.Second),
Create: schema.DefaultTimeout(10 * time.Minute),
Read: schema.DefaultTimeout(10 * time.Minute),
Update: schema.DefaultTimeout(10 * time.Minute),
Delete: schema.DefaultTimeout(10 * time.Minute),
Default: schema.DefaultTimeout(10 * time.Minute),
},
}
}
Expand Down

0 comments on commit 4ae8d07

Please sign in to comment.