-
Notifications
You must be signed in to change notification settings - Fork 12
[DHCP] Terraform Provider Support for IPV6 Fixed address #277
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
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.
Please modify model_func_call.go for ipam to contain these plan modifiers
| PlanModifiers: []planmodifier.String{ |
| @@ -0,0 +1,16 @@ | |||
| // Retrieve a specific IPV6 Fixed Addresses by filters | |||
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.
| // Retrieve a specific IPV6 Fixed Addresses by filters | |
| // Retrieve a specific IPV6 Fixed Address by filters |
| @@ -0,0 +1,114 @@ | |||
| // Create an IPV6 Network (Required as Parent) | |||
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.
Can we create a single IPV6 network as Parent and use it in all the examples ?
| comment = "Parent network for DHCP fixed addresses" | ||
| } | ||
|
|
||
| // Create an IPV6 Fixed Address with Basic Fields |
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.
| // Create an IPV6 Fixed Address with Basic Fields | |
| // Create an IPv6 Fixed Address with Basic Fields |
Please make this change for all the examples and the resource and data source descriptions
| extattrs = { | ||
| Site = "location-2" | ||
| } | ||
| depends_on = [nios_ipam_ipv6network.parent_network1] |
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.
network = nios_ipam_ipv6network.parent_network1.network can be used here to create implicit dependency instead of depends_on
| use_logic_filter_rules = true | ||
| logic_filter_rules = [ | ||
| { | ||
| filter = "ipv6_option_filter" |
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.
ipv6_option_filter rule object has to be present on the grid for this.
I think as of now it can be removed from the additional fields
| ipv6addr := "2001:db8:abcd:1231::1" | ||
| networkView := acctest.RandomNameWithPrefix("network-view") | ||
| duid := "00:01:00:01:1d:2b:3c:4d:00:0c:29:ab:cd:ef" | ||
| domainName1 := acctest.RandomName() |
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.
Please give domain name in fqdn format
| domainName1 := acctest.RandomName() | |
| domainName1 := acctest.RandomName()+".com" |
| ipv6addr := "2001:db8:abcd:1231::1" | ||
| networkView := acctest.RandomNameWithPrefix("network-view") | ||
| duid := "00:01:00:01:1d:2b:3c:4d:00:0c:29:ab:cd:ef" | ||
| domainNameServers1 := `["2001:4860:4860::8888","2001:4860:4860::8844"]` |
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.
Please pass this as []string{} and not string
| return strings.Join([]string{testAccBaseNetworkView(networkView, ipv6Network), config}, "") | ||
| } | ||
|
|
||
| func testAccBaseNetworkViewCreateTwoNetworks(networkView, ipv6Network1, ipv6Network2 string) string { |
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.
| func testAccBaseNetworkViewCreateTwoNetworks(networkView, ipv6Network1, ipv6Network2 string) string { | |
| func testAccBaseWithTwoIPv6Networks(networkView, ipv6Network1, ipv6Network2 string) string { |
| options := []map[string]any{ | ||
| { | ||
| "name": "domain-name", | ||
| "num": "15", |
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.
Could you add multiple options here ?
Also vary the options with just providing name or num
| "domain-name, broadcast-address, broadcast-address-offset, dhcp-lease-time, dhcp6.name-servers.", | ||
| optionName), | ||
| ) | ||
| } |
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.
Please check if this validation is required here
terraform-provider-nios/internal/service/dhcp/ipv6fixedaddresstemplate_resource.go
Line 323 in f669cb9
| // domain_name attribute must match the value of option 'domain-name' |
No description provided.