Skip to content

Commit

Permalink
Merge pull request #273 from NetApp/265-docs-on-prem-ontap-version-is…
Browse files Browse the repository at this point in the history
…-wrong-for-resource-ip-route

265 docs on prem ontap version is wrong for resource ip route
  • Loading branch information
carchi8py committed Aug 28, 2024
2 parents d478662 + 8c8f80b commit 874094c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

DOC FIXES:
* **netapp-ontap_storage_flexcache_resource**: Fixed Page display issue ([[#271](https://github.com/NetApp/terraform-provider-netapp-ontap/issues/271)])
* **netapp-ontap_networking_ip_interface_resource**: Include min version for metrics ([[#265](https://github.com/NetApp/terraform-provider-netapp-ontap/issues/265)])

BUG FIXES:
* **netapp-ontap_cluster_data_source: fix on nodes to show multiple elements ([#264](https://github.com/NetApp/terraform-provider-netapp-ontap/issues/264))
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/networking_ip_route_resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ resource "netapp-ontap_networking_ip_route_resource" "networking_ip_route" {
### Optional

- `destination` (Attributes) destination IP address information (see [below for nested schema](#nestedatt--destination))
- `metric` (Number) Indicates a preference order between several routes to the same destination.
- `metric` (Number) Requires 9.11.1. Indicates a preference order between several routes to the same destination.
- `svm_name` (String) IPInterface vserver name

### Read-Only
Expand Down
2 changes: 1 addition & 1 deletion internal/interfaces/networking_ip_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func GetListIPRoutes(errorHandler *utils.ErrorHandler, r restclient.RestClient,
}

var fields = []string{"destination", "gateway"}
if version.Generation == 9 && version.Major > 11 {
if version.Generation == 9 && version.Major > 10 {
fields = append(fields, "metric")
}
query.Fields(fields)
Expand Down

0 comments on commit 874094c

Please sign in to comment.