Skip to content

Commit

Permalink
add mist_device_switch.local_port_config.note
Browse files Browse the repository at this point in the history
  • Loading branch information
tmunzer committed Dec 30, 2024
1 parent a64a1ad commit e833beb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/resource_device_switch/device_switch_resource_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ func localPortConfigSdkToTerraform(ctx context.Context, diags *diag.Diagnostics,
if d.Networks != nil {
item_obj.Networks = mist_transform.ListOfStringSdkToTerraform(ctx, d.Networks)
}
if d.Note != nil {
item_obj.Note = types.StringValue(*d.Note)
}
if d.PersistMac != nil {
item_obj.PersistMac = types.BoolValue(*d.PersistMac)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ func LocalPortConfigTerraformToSdk(ctx context.Context, diags *diag.Diagnostics,
if !plan_obj.Networks.IsNull() && !plan_obj.Networks.IsUnknown() {
item_obj.Networks = mist_transform.ListOfStringTerraformToSdk(ctx, plan_obj.Networks)
}
if plan_obj.Note.ValueStringPointer() != nil {
item_obj.Note = plan_obj.Note.ValueStringPointer()
}
if plan_obj.PersistMac.ValueBoolPointer() != nil {
item_obj.PersistMac = models.ToPointer(plan_obj.PersistMac.ValueBool())
}
Expand Down

0 comments on commit e833beb

Please sign in to comment.