CiscoISE / terraform-provider-ciscoise

Terraform Provider for Cisco ISE
https://registry.terraform.io/providers/CiscoISE/ciscoise/latest/docs
MIT License
9 stars 4 forks source link

Cannot create ciscoise_network_device_group - othername/ndgtype issues. #111

Closed mike-guy closed 3 weeks ago

mike-guy commented 6 months ago

Describe the bug

The documentation for this resource says that the resource can use the following under parameters:

But using ndgtype does not work. This appears to be a reintroduction of the error in #94 or it wasn't resolved. Additionally, the documentation still references "othername" in the example...

image

Expected behaviour

Expected that the resource would be created, but it isn't.

Screenshots

image

Actual behaviour

Error back from ISE API stating that the property name ndgtype is not correct.

image

If I try and use othername in the resource, we get a terraform error instead stating this is not valid...

image

Environment (please complete the following information):

kuba-mazurkiewicz commented 4 months ago

Hey you can try using CiscoDevNet/ise provider: https://registry.terraform.io/providers/CiscoDevNet/ise/latest/docs/resources/network_device_group

TF code can look like this:

variable "group_names" {
  description = "List of group names"
  type        = list(string)
  default     = ["Group_1", "Group_2", "Group_3", "Group_4", "Group_5"]
}

resource "ise_network_device_group" "example" {
  for_each    = toset(var.group_names)
  name        = "Device Type#All Device Types#${each.key}"
  description = "My network device group"
  root_group  = "Device Type"
}

This will create following groups on ISE:

Screenshot 2024-04-15 at 16 29 09

fmunozmiranda commented 1 month ago

Hi @mike-guy could you please retry it with last version of ISE provider and update us if bug still there?

fmunozmiranda commented 3 weeks ago

If we don´t get answer, this issue will be closed in next 24 hours.