Skip to content

Commit

Permalink
Remove validation for the IP protocol type (#6271) (#12118)
Browse files Browse the repository at this point in the history
* Update api.yaml

Remove validation for the protocol type

* Resolve Build errors for removing IP protocol validation

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician committed Jul 18, 2022
1 parent 1799b89 commit 1f4c1fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .changelog/6271.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
Remove validation for the IP protocol type
```
5 changes: 2 additions & 3 deletions google/resource_compute_packet_mirroring.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,9 @@ destination (egress) IP in the IP header. Only IPv4 is supported.`,
"ip_protocols": {
Type: schema.TypeList,
Optional: true,
Description: `Protocols that apply as a filter on mirrored traffic. Possible values: ["tcp", "udp", "icmp"]`,
Description: `Possible IP protocols including tcp, udp, icmp and esp`,
Elem: &schema.Schema{
Type: schema.TypeString,
ValidateFunc: validateEnum([]string{"tcp", "udp", "icmp"}),
Type: schema.TypeString,
},
},
},
Expand Down
3 changes: 1 addition & 2 deletions website/docs/r/compute_packet_mirroring.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@ The following arguments are supported:

* `ip_protocols` -
(Optional)
Protocols that apply as a filter on mirrored traffic.
Each value may be one of `tcp`, `udp`, and `icmp`.
Possible IP protocols including tcp, udp, icmp and esp

* `cidr_ranges` -
(Optional)
Expand Down

0 comments on commit 1f4c1fa

Please sign in to comment.