PaloAltoNetworks / pan-os-codegen

Generator for pango SDK and panos Terraform Provider
MIT License
4 stars 0 forks source link

Validate that only a single variant is set in terraform provider #151

Open kklimonda-cl opened 2 weeks ago

kklimonda-cl commented 2 weeks ago

Is your feature request related to a problem?

Right now validation of variants is done on the SDK side during Create() and Update() calls (where object is transformed into its XML representation).

This is too late for validation of the plan, and the error is thrown during apply instead.

Add variant validation to ValidateConfig() function in our template code.

Describe the solution you'd like

Describe alternatives you've considered

Additional context