CiscoISE / terraform-provider-ciscoise

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

Updating network device #113

Closed tali1974 closed 4 months ago

tali1974 commented 7 months ago

Prerequisites

Describe the bug I want to update an exist device. When I use the rest API like so it works just fine url = "https://192.168.10:9060/ers/config/networkdevice/"+devid response = requests.request("PUT", url, headers=headers, data=json.dumps(payload), verify=False) I am able to update an existing Network Device. But when I use `resource "ise_network_device" "ise_en" {
name = "sw-003" description = "EN" ips = [ { ipaddress = "10.10.10.169" mask = "32" } ] network_device_groups =[

"Location#All Locations#Test Sites",

"Location#All Locations",
"IPSEC#Is IPSEC Device#No",
"Device Type#All Device Types#Switches",

]

}I get error telling that the Device Name Already Exist Error: Client Error │ │ with ise_network_device.ise_en, │ on 000_Ipam.tf line 111, in resource "ise_network_device" "ise_en": │ 111: resource "ise_network_device" "ise_en" { │ │ Failed to configure object (POST), got error: HTTP Request failed: StatusCode 400, Message: Network Device Create failed: Device Name Already Exist,`

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

SCR-20240422-tozc

Environment (please complete the following information):

Additional context Add any other context about the problem here.

fmunozmiranda commented 4 months ago

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

fmunozmiranda commented 4 months ago

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