cisco-en-programmability / terraform-provider-dnacenter

https://registry.terraform.io/providers/cisco-en-programmability/dnacenter/latest/docs
MIT License
14 stars 12 forks source link

Add border device in SDA Fabric #68

Closed artur-tekieli closed 2 years ago

artur-tekieli commented 2 years ago

Prerequisites

Describe the bug (dnacenter_sda_fabric_border_device) Resource fails to Add border device in SDA Fabric

Expected behavior API call should succeed and device should be configured as Border, Control Plane and Edge. If all three roles are included.

Screenshots when '[' and ']' are used with "virtualNetwork": the API fails: Screenshot 2022-07-11 at 19 38 10

terraform also includes '[' and ']' - so it fails.

Screenshot 2022-07-11 at 19 44 13

However without '[' and ']' it works:

Screenshot 2022-07-11 at 19 42 08

Environment (please complete the following information):

Additional context It seems that's how this API is also documented on DNAC:

Screenshot 2022-07-11 at 19 35 50

fmunozmiranda commented 2 years ago

@artur-tekieli version 1.0.3-beta was published with a possible solution to your problem, please verify it's now working for you and let us know how it went.

artur-tekieli commented 2 years ago

@fmunozmiranda, I still see an error although its different:

Screenshot 2022-07-11 at 21 55 30

The device is provisioned and assigned to site:

Screenshot 2022-07-11 at 22 17 48

artur-tekieli commented 2 years ago

@fmunozmiranda - still failing

Screenshot 2022-07-12 at 12 21 46
fmunozmiranda commented 2 years ago

@artur-tekieli could you export this env variable or include debug in provider configuration and show me all answer you have please?

Env Variable:

TF_LOG=DEBUG

Provider configuration:


provider "dnacenter" {
  debug = "true"
}
artur-tekieli commented 2 years ago

@fmunozmiranda here it is. tf_debug.txt

fmunozmiranda commented 2 years ago

@artur-tekieli sorry for the delay, we had some problems when publishing, there is a new version in which your problem should be solved, check that the version you are using is 1.0.5-beta, also look at the example: https ://github.com/cisco-en-programmability/terraform-provider-dnacenter/blob/main/examples/resources/dnacenter_sda_fabric_border_device/resource.tf, if the change does not work for you it would be very important for us that you pass us your file test(tf file) along with the full response with DEBUG enabled.

Note: Thanks for reporting, it helps us a lot.

artur-tekieli commented 2 years ago

@fmunozmiranda - I can confirm in my test that it works. Thanks.