Skip to content
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

ipv6_neighbor_discovery dns server configuration fix attempt #509

Merged
merged 2 commits into from
Jul 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions routeros/resource_ipv6_neighbor_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,20 @@ func ResourceIPv6NeighborDiscovery() *schema.Resource {
Default: true,
},
KeyComment: PropCommentRw,
"default": {
Type: schema.TypeBool,
Computed: true,
Description: "Neighbor discovery entry is the default configuration.",
},
"dns_servers": {
Type: schema.TypeString,
Optional: true,
Description: "Specify a single IPv6 address or list of addresses that will be provided to hosts for DNS server configuration.",
ValidateFunc: validation.IsCIDR,
Type: schema.TypeString,
Optional: true,
Description: "Specify a single IPv6 address or list of addresses that will be provided to hosts for DNS server configuration.",
},
"dns": {
Type: schema.TypeString,
Optional: true,
Description: "Specify a single IPv6 address or comma separated list of addresses that will be provided to hosts for DNS server configuration.",
},
KeyDisabled: PropDisabledRw,
"hop_limit": {
Expand All @@ -69,6 +78,7 @@ func ResourceIPv6NeighborDiscovery() *schema.Resource {
Description: "The interface on which to run neighbor discovery." +
"all - run ND on all running interfaces.",
},
KeyInvalid: PropInvalidRo,
"managed_address_configuration": {
Type: schema.TypeBool,
Optional: true,
Expand Down