terraform-provider-panos
terraform-provider-panos copied to clipboard
Missing arguments after import
Describe the bug
Hello!,
Working on https://github.com/GoogleCloudPlatform/terraformer/pull/939, I discovered that a number of resources have bugs after import.
Expected behavior
The provider should import all attributes, or at least the required attributes.
Current behavior
I encountered these bugs:
- [ ]
name
attribute missing after import:panos_management_profile
,panos_ike_crypto_profile
,panos_ike_gateway
,panos_ipsec_crypto_profile
- [x]
dynamic routes dist
(ex:ospfv3_ext_dist
) are set to 0 by default instead of the default value inpanos_virtual_router
- [ ] all
Objects
resources (common to the firewalls and Panorama) don’t have avsys
nor adevice_group
set - [ ]
hip_profiles
are not set inpanos_security_rule_group
- [ ]
destination|source
blocks are not set in thetranslated_packet
inpanos_nat_rule_group
if thedestination|source
is not modified
Possible solution
Set these attributes on import.
Steps to reproduce
$ terraform import ... ...
$ terraform state show ...
Context
Development of the Terraformer provider for panos. Dedicated commit to create workarounds for this issue: https://github.com/GoogleCloudPlatform/terraformer/pull/939/commits/4f5a6a8d9ff3d2ba0027dfa50c4f49d391f1c23b.
protocol
import is missing in panos_ipsec_crypto_profile
as well.
Any update on this?