bhouse-nexthop commented on code in PR #284:
URL: 
https://github.com/apache/cloudstack-terraform-provider/pull/284#discussion_r2912673192


##########
website/docs/r/static_route.html.markdown:
##########
@@ -12,22 +12,43 @@ Creates a static route for the given private gateway or VPC.
 
 ## Example Usage
 
+Using a private gateway:
+
 ```hcl
 resource "cloudstack_static_route" "default" {
   cidr       = "10.0.0.0/16"
   gateway_id = "76f607e3-e8dc-4971-8831-b2a2b0cc4cb4"
 }
 ```
 
+Using a nexthop IP address:
+
+```hcl
+resource "cloudstack_static_route" "with_nexthop" {
+  cidr    = "10.0.0.0/16"
+  nexthop = "192.168.1.1"
+  vpc_id  = "76f607e3-e8dc-4971-8831-b2a2b0cc4cb4"
+}
+```
+
 ## Argument Reference
 
 The following arguments are supported:
 
 * `cidr` - (Required) The CIDR for the static route. Changing this forces
     a new resource to be created.
 
-* `gateway_id` - (Required) The ID of the Private gateway. Changing this forces
-    a new resource to be created.
+* `gateway_id` - (Optional) The ID of the Private gateway. Changing this forces
+    a new resource to be created. Conflicts with `nexthop` and `vpc_id`.
+
+* `nexthop` - (Optional) The IP address of the nexthop for the static route.
+    Changing this forces a new resource to be created. Conflicts with 
`gateway_id`.
+    Must be used together with `vpc_id`.
+
+* `vpc_id` - (Optional) The ID of the VPC. Required when using `nexthop`.
+    Changing this forces a new resource to be created. Conflicts with 
`gateway_id`.
+
+**Note:** Either `gateway_id` or (`nexthop` + `vpc_id`) must be specified.

Review Comment:
   fixed in c7e89c0



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to