thomasfinstad / terraform-provider-vyos-rolling

Terraform provider for VyOS with a focus on automatic resource generation
6 stars 0 forks source link

create struct of valid struct field flag options #183

Closed github-actions[bot] closed 7 months ago

github-actions[bot] commented 7 months ago

milestone:6

https://github.com/thomasfinstad/terraform-provider-vyos/blob/c3bd4b16ebe7a43fe5699e92a09c689c41d3aa65/internal/terraform/helpers/unmarshal.go#L30


        tools.Debug(ctx, "processing field", map[string]interface{}{"Field": fName, "Type": fType, "Tags": fTags})

        // Set flags based on tags, first tag must be the vyos field name, the rest are bools with default of false
        // TODO create struct of valid struct field flag options
        //  milestone:6
        flags := map[string]any{
            "name":      fTags[0],
            "self-id":   false,