Skip to content

Commit

Permalink
handle legacy network deprecation (#2508)
Browse files Browse the repository at this point in the history
  • Loading branch information
megan07 authored and rileykarson committed Nov 6, 2019
1 parent 742ac7e commit 9946228
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion products/compute/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,6 @@ overrides: !ruby/object:Overrides::ResourceOverrides
custom_code: !ruby/object:Provider::Terraform::CustomCode
post_create: templates/terraform/post_create/compute_network_delete_default_route.erb
extra_schema_entry: templates/terraform/extra_schema_entry/network.erb
encoder: templates/terraform/encoders/network.erb
NetworkEndpoint: !ruby/object:Overrides::Terraform::ResourceOverride
id_format: "{{project}}/{{zone}}/{{network_endpoint_group}}/{{instance}}/{{ip_address}}/{{port}}"
mutex: networkEndpoint/{{project}}/{{zone}}/{{network_endpoint_group}}
Expand Down
5 changes: 0 additions & 5 deletions templates/terraform/encoders/network.erb

This file was deleted.

2 changes: 1 addition & 1 deletion templates/terraform/extra_schema_entry/network.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
-%>
"ipv4_range": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Removed: "Legacy Networks are deprecated and you will no longer be able to create them using this field from Feb 1, 2020 onwards.",
},
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ documentation.

### `ipv4_range` is now removed

Legacy Networks are deprecated and you will no longer be able to create them
Legacy Networks are removed and you will no longer be able to create them
using this field from Feb 1, 2020 onwards.

## Resource: `google_compute_network_peering`
Expand Down

0 comments on commit 9946228

Please sign in to comment.