Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation of ibm_is_vpc_route resource & correction for ibm_is_vpc_routing_table_route #3919

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions ibm/service/vpc/resource_ibm_is_vpc_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ const (

func ResourceIBMISVpcRoute() *schema.Resource {
return &schema.Resource{
Create: resourceIBMISVpcRouteCreate,
Read: resourceIBMISVpcRouteRead,
Update: resourceIBMISVpcRouteUpdate,
Delete: resourceIBMISVpcRouteDelete,
Exists: resourceIBMISVpcRouteExists,
Importer: &schema.ResourceImporter{},
DeprecationMessage: "This resource is deprecated, use ibm_is_vpc_routing_table_route instead.",
Create: resourceIBMISVpcRouteCreate,
Read: resourceIBMISVpcRouteRead,
Update: resourceIBMISVpcRouteUpdate,
Delete: resourceIBMISVpcRouteDelete,
Exists: resourceIBMISVpcRouteExists,
Importer: &schema.ResourceImporter{},

Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(10 * time.Minute),
Expand Down
4 changes: 2 additions & 2 deletions website/docs/d/is_vpc_routing_table_routes.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ Review the argument references that you can specify for your data source.
## Attribute reference
In addition to all argument reference list, you can access the following attribute references after your data source is created.

- `routing_table_routes` (List) List of all the routing table in a VPC.
- `routes` (List) List of all the routing table in a VPC.

Nested scheme for `routing_table_routes`:
Nested scheme for `routes`:
- `name` - (String) The name for the default routing table.
- `route_id` - (String) The unique ID for the route.
- `lifecycle_state` - (String) The lifecycle state of the route.
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/is_vpc_route.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description: |-
Manages IBM IS VPC route.
---

~>**Note** This resource is deprecated, use `ibm_is_vpc_routing_table_route` instead.
# ibm_is_vpc_route
Create, update, or delete a VPC route. For more information, about VPC routes, see [setting up advanced routing in VPC](https://cloud.ibm.com/docs/vpc?topic=vpc-about-custom-routes).

Expand Down