Open swarudka opened 1 month ago
Hi @swarudka
I tried exporting global_pool and it worked. Can you enable debug and send me the output either screenshots or .txt/.log. Also if you can send me the .tf you used for the test, because it looks more like a bug in the tf.
You can enable debugging by exporting these environment variables:
set -x DEBUG 'true
set -x TF_LOG 'DEBUG' set -x TF_LOG 'DEBUG'
Once debugging is enabled, you will be able to see all logs and dnac api calls.
Regards
Prerequisites Create a global IP pool by utilizing Terraform Apply or Postman. Postman was the tool I used to create:- Request API - https:///dna/intent/api/v1/global-pool
Response: { "executionId": "d6cdec83-1ba3-40db-bed2-da7bf5a15fcb", "executionStatusUrl": "/dna/platform/management/business-api/v1/execution-status/d6cdec83-1ba3-40db-bed2-da7bf5a15fcb", "message": "The request has been accepted for execution"
Request Data:-
{ "settings": { "ippool": [ { "ipPoolName": "MyPool", "type": "generic", "ipPoolCidr": "22.1.1.0/24", "gateway": "22.1.1.2", "dhcpServerIps": [ "100.100.100.100" ], "dnsServerIps": [ "101.101.101.101" ], "IpAddressSpace": "IPv4" } ] } }
The creation of the resource was successful, and I verified it using the get all (API- dna/intent/api/v1/global-pool?offset=1)
Describe the bug During the execution of the Terraform Import command (terraform import terraform import dnacenter_global_pool.example "id:=d61b3141-9008-45f3-8032-d3638641945c"
I am encountering a problem. Take a look at the screen shot below.![image](https://github.com/cisco-en-programmability/terraform-provider-dnacenter/assets/79891777/bcd78c6a-bedf-4fc3-89ce-c643240cd149)
Environment (please complete the following information): Cisco DNA Center version and patch: Terraform version: Terraform v1.6.1 Dcloud DNAC: Cisco 4D IBN Campus PoV Sandbox 4.0 Revision 2.3.7.4 OS Version: windows_386