Skip to content

Commit

Permalink
fix(interface_lte): Add missing attributes
Browse files Browse the repository at this point in the history
Fixes #522
  • Loading branch information
vaerh committed Aug 4, 2024
1 parent 51e161d commit f67e8d9
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions routeros/resource_interface_lte.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,13 @@ func ResourceInterfaceLte() *schema.Resource {
KeyMtu: PropMtuRw(),
KeyName: PropName("Descriptive name of the interface."),
"network_mode": {
Type: schema.TypeString,
Optional: true,
Description: "Select/force mode for LTE interface to operate with.",
ValidateFunc: validation.StringInSlice([]string{"3g", "gsm", "lte", "5g"}, false),
Type: schema.TypeSet,
Optional: true,
Description: "Select/force mode for LTE interface to operate with.",
Elem: &schema.Schema{
Type: schema.TypeString,
ValidateFunc: validation.StringInSlice([]string{"3g", "gsm", "lte", "5g"}, false),
},
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
"nr_band": {
Expand Down Expand Up @@ -101,6 +104,11 @@ func ResourceInterfaceLte() *schema.Resource {
"appropriate option depending on the modem.",
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
"sms_read": {
Type: schema.TypeBool,
Optional: true,
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
}

resCreateUpdate := func(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
Expand Down

0 comments on commit f67e8d9

Please sign in to comment.