-
Notifications
You must be signed in to change notification settings - Fork 8
/
cluster_profile_subresource.go
46 lines (43 loc) · 1.26 KB
/
cluster_profile_subresource.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright 2024 Broadcom. All Rights Reserved.
// SPDX-License-Identifier: MPL-2.0
package nsx_edge_cluster
import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
)
func ClusterProfileSchema() *schema.Resource {
return &schema.Resource{
Schema: map[string]*schema.Schema{
"name": {
Type: schema.TypeString,
Required: true,
Description: "The name of the profile",
ValidateFunc: validation.NoZeroValues,
},
"bfd_allowed_hop": {
Type: schema.TypeInt,
Required: true,
Description: "BFD allowed hop",
ValidateFunc: validation.IntBetween(1, 255),
},
"bfd_declare_dead_multiple": {
Type: schema.TypeInt,
Required: true,
Description: "BFD declare dead multiple",
ValidateFunc: validation.IntBetween(2, 16),
},
"bfd_probe_interval": {
Type: schema.TypeInt,
Required: true,
Description: "BFD probe interval",
ValidateFunc: validation.IntBetween(500, 60000),
},
"standby_relocation_threshold": {
Type: schema.TypeInt,
Required: true,
Description: "Standby relocation threshold",
ValidateFunc: validation.IntBetween(10, 1000),
},
},
}
}