Closed tzarski0 closed 2 months ago
When I configure transport BGP parcel:
# module.sdwan.sdwan_transport_routing_bgp_profile_parcel.transport_routing_bgp_profile_parcel["transport1-bgp"] will be created + resource "sdwan_transport_routing_bgp_profile_parcel" "transport_routing_bgp_profile_parcel" { + as_number_variable = "{{vpn0_bgp_as_number}}" + description = "VPN 0 BGP" + feature_profile_id = (known after apply) + hold_time = 3 + id = (known after apply) + ipv4_eibgp_maximum_paths_variable = "{{vpn0_bgp_ipv4_maximum_paths}}" + ipv4_neighbors = [ + { + address_families = [ + { + family_type = "ipv4-unicast" + max_number_of_prefixes = 100 + policy_type = "warning-only" }, ] + address_variable = "{{vpn1_bgp_ipv4_neighbor1_address}}" + next_hop_self = false + password_variable = "{{vpn1_bgp_ipv4_neighbor1_password}}" + remote_as_variable = "{{vpn1_bgp_ipv4_neighbor1_remote_as}}" + shutdown_variable = "{{vpn1_bgp_ipv4_neighbor1_shutdown}}" }, ] + ipv4_originate = false + ipv4_redistributes = [ + { + protocol = "connected" }, + { + protocol_variable = "{{vpn0_bgp_redistributes_protocol_name}}" }, ] + keepalive_time = 1 + name = "transport_bgp" + version = (known after apply) }
And then go to UI click Edit and Save (without changing anything), then next terraform apply shows diff although it shouldn't:
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: ~ update in-place Terraform will perform the following actions: # module.sdwan.sdwan_transport_routing_bgp_profile_parcel.transport_routing_bgp_profile_parcel["transport1-bgp"] will be updated in-place ~ resource "sdwan_transport_routing_bgp_profile_parcel" "transport_routing_bgp_profile_parcel" { id = "bd4af302-f1e2-4ced-9d16-f549e42827a4" ~ ipv4_neighbors = [ ~ { ~ address_families = [ ~ { + family_type = "ipv4-unicast" + max_number_of_prefixes = 100 + policy_type = "warning-only" }, ] + address_variable = "{{vpn1_bgp_ipv4_neighbor1_address}}" + next_hop_self = false + remote_as_variable = "{{vpn1_bgp_ipv4_neighbor1_remote_as}}" + shutdown_variable = "{{vpn1_bgp_ipv4_neighbor1_shutdown}}" # (1 unchanged attribute hidden) }, ] ~ ipv4_redistributes = [ ~ { + protocol = "connected" }, ~ { + protocol_variable = "{{vpn0_bgp_redistributes_protocol_name}}" }, ] name = "transport_bgp" ~ version = 1 -> (known after apply) # (7 unchanged attributes hidden) } Plan: 0 to add, 1 to change, 0 to destroy.
When I configure transport BGP parcel:
And then go to UI click Edit and Save (without changing anything), then next terraform apply shows diff although it shouldn't: