Skip to content

Commit

Permalink
fix(fw-mangle): Fix dst_address_list validation
Browse files Browse the repository at this point in the history
Fixed #480
  • Loading branch information
vaerh committed Jun 4, 2024
1 parent ff57011 commit 0eb25c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions routeros/resource_ip_firewall_mangle.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ func ResourceIPFirewallMangle() *schema.Resource {
Description: "Matches destination address of a packet against user-defined address list.",
},
"dst_address_type": {
Type: schema.TypeString,
Optional: true,
Description: "Matches destination address type.",
ValidateFunc: validation.StringInSlice([]string{"unicast", "local", "broadcast", "multicast"}, false),
Type: schema.TypeString,
Optional: true,
Description: "Matches destination address type.",
ValidateDiagFunc: ValidationMultiValInSlice([]string{"unicast", "local", "broadcast", "multicast", "blackhole"}, false, true),
},
"dst_limit": {
Type: schema.TypeString,
Expand Down

0 comments on commit 0eb25c9

Please sign in to comment.