-
Notifications
You must be signed in to change notification settings - Fork 12
Resource and Data Source Implementation for Network Template #288
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
base: feature
Are you sure you want to change the base?
Conversation
…nios into networktemplate
…nios into networktemplate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR implements comprehensive resource and data source support for Network Templates in the NIOS provider, enabling users to create, read, update, and delete network template objects with extensive configuration options for DHCP, DDNS, IPAM, and other network settings.
Key Changes
- Added complete CRUD operations for
nios_ipam_networktemplateresource with support for 60+ configuration attributes - Implemented data source for querying network templates with filter and extensible attribute support
- Updated vendor dependencies to include the new
Structfield inNetworktemplateMembersmodel - Added comprehensive test coverage with 70+ test cases covering all major attributes
Reviewed changes
Copilot reviewed 16 out of 20 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| vendor/modules.txt, go.mod, go.sum | Updated infoblox-nios-go-client dependency to version with NetworktemplateMembers.Struct field |
| vendor/.../model_networktemplate_members.go | Added Struct field with getter/setter methods for member type identification |
| internal/service/ipam/networktemplate_resource.go | Implemented resource with CRUD operations, validation logic for options and members |
| internal/service/ipam/model_networktemplate.go | Core model with 60+ attributes for network template configuration |
| internal/service/ipam/model_networktemplate_*.go | Supporting models for nested objects (options, members, delegated_member, etc.) |
| internal/service/ipam/networktemplate_resource_test.go | Comprehensive test suite with 70+ test cases for all attributes |
| internal/service/ipam/networktemplate_data_source*.go | Data source implementation with filter support and tests |
| internal/provider/provider.go | Registered new resource and data source with provider |
| examples/, docs/ | Documentation and usage examples for resource and data source |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
VishrutiBuddhadev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. @JchhatbarInfoblox Please take a look!
No description provided.