Skip to content

Commit

Permalink
Merge pull request #304 from terraform-providers/enhaocui/297
Browse files Browse the repository at this point in the history
Allow Vlan Id 0 in Validator
  • Loading branch information
enhaocui authored Apr 29, 2020
2 parents 138b3c0 + e65f524 commit a1e139c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nsxt/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ func validateVLANId(i interface{}, k string) (s []string, es []error) {
return
}
}
if vlan < 1 || vlan > 4095 {
if vlan < 0 || vlan > 4095 {
es = append(es, fmt.Errorf("invalid VLAN ID %d", vlan))
return
}
Expand Down

0 comments on commit a1e139c

Please sign in to comment.