Skip to content

Conversation

@suhasbshekar
Copy link
Contributor

No description provided.

Copy link
Contributor

@chuyich chuyich Jan 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

provider.tf should be a link pointing to https://github.com/NetApp/terraform-provider-netapp-ontap/blob/integration/main/examples/provider/provider.tf
If there are some new clusters, please update the canvas on the dev-terraform-ontap channel

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is still a file not a link

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is still a file not a link.

stringvalidator.OneOf("cifs", "nfsv3", "nfsv4"),
},
},
"file_operations": schema.SetAttribute{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we add Set for a list in terraform so that it supports schema appropriately

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if orders does not matter, use set.

MarkdownDescription: "File operations to be monitored",
Optional: true,
},
"filters": schema.SetAttribute{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we add Set for a list in terraform so that it supports schema appropriately

MarkdownDescription: "Filters to be applied for the specified file operations",
Optional: true,
},
"volume_monitoring": schema.BoolAttribute{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it is not provided, there will be a value to be set.
Can this add:
PlanModifiers: []planmodifier.Bool{
boolplanmodifier.UseStateForUnknown(),
},

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually the API adds false as default, updated accordingly

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the doc, "If not specified in POST, the following default property values are assigned:

file_operations.* - false
filters.* - false
volume-monitoring - false"

Which means the paramters do not have to be set with default values, the API will take the call without these default values and the response will give the full set with the default values if the parameters are not set in the POST.

ref. https://github.com/NetApp/terraform-provider-netapp-ontap/blob/integration/main/internal/provider/protocols/protocols_cifs_share_resource.go#L145

Copy link
Contributor

@chuyich chuyich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@chuyich chuyich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the comments and fix accordingly. And can you provide some edge test cases and show the result in the PR? Like run only the required parameters on creating and do the update on that. That will help to speed up the review. Thank you.

@suhasbshekar
Copy link
Contributor Author

suhasbshekar commented Jan 14, 2026

Please check the ACC run in pipeline, it has updated list of tests

return f
}

// // convertFileOperationsFromStruct converts FpolicyEventFileOperations struct to types.Set
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove if not needed. If need, add comments.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@suhasbshekar suhasbshekar merged commit d0694c6 into integration/main Feb 3, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[New Resource]: netapp-ontap_protocols_fpolicy_event

3 participants