Skip to content

Commit

Permalink
Move DiffSuppressFunc to the right field
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Prete committed Nov 4, 2022
1 parent 21e43c0 commit 423368f
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,19 @@ func resourceComputeRouterInterface() *schema.Resource {
Description: `The IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. Changing this forces a new interface to be created.`,
},
"private_ip_address": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Description: `The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance.`,
},
"subnetwork": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
DiffSuppressFunc: compareSelfLinkOrResourceName,
Description: `The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance.`,
},
"subnetwork": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
AtLeastOneOf: []string{"vpn_tunnel", "interconnect_attachment", "subnetwork"},
ConflictsWith: []string{"interconnect_attachment", "vpn_tunnel"},
Description: `The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router.`,
AtLeastOneOf: []string{"vpn_tunnel", "interconnect_attachment", "subnetwork"},
ConflictsWith: []string{"interconnect_attachment", "vpn_tunnel"},
Description: `The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router.`,
},
"project": {
Type: schema.TypeString,
Expand Down

0 comments on commit 423368f

Please sign in to comment.