Skip to content

Commit

Permalink
added mysql firewall start and end IP address validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ritesh-modi committed Oct 20, 2020
1 parent 8a85e0c commit 790b11e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions azurerm/internal/services/mysql/mysql_firewall_rule_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/tf"
azValidate "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/validate"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/clients"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/mysql/validate"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/timeouts"
Expand Down Expand Up @@ -50,13 +51,15 @@ func resourceArmMySqlFirewallRule() *schema.Resource {
},

"start_ip_address": {
Type: schema.TypeString,
Required: true,
Type: schema.TypeString,
Required: true,
ValidateFunc: azValidate.IPv4Address,
},

"end_ip_address": {
Type: schema.TypeString,
Required: true,
Type: schema.TypeString,
Required: true,
ValidateFunc: azValidate.IPv4Address,
},
},
}
Expand Down

0 comments on commit 790b11e

Please sign in to comment.