Skip to content

Commit 069da0e

Browse files
authored
fix: reduce the upper boundary for asn to fit into 32 bits (#121)
Signed-off-by: Stoyan Zhelyazkov <[email protected]>
1 parent 4c5c9c2 commit 069da0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/nsx_edge_cluster/edge_node_subresource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func BgpPeerSchema() *schema.Resource {
151151
Type: schema.TypeInt,
152152
Required: true,
153153
Description: "ASN",
154-
ValidateFunc: validation.IntBetween(1, int(math.Pow(2, 32))),
154+
ValidateFunc: validation.IntBetween(1, int(math.Pow(2, 31)-1)),
155155
},
156156
},
157157
}

internal/provider/resource_edge_cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func ResourceEdgeCluster() *schema.Resource {
116116
Type: schema.TypeInt,
117117
Optional: true,
118118
Description: "ASN for the cluster",
119-
ValidateFunc: validation.IntBetween(1, int(math.Pow(2, 32))),
119+
ValidateFunc: validation.IntBetween(1, int(math.Pow(2, 31)-1)),
120120
},
121121
"skip_tep_routability_check": {
122122
Type: schema.TypeBool,

0 commit comments

Comments
 (0)