Skip to content

Commit 1f4c1fa

Browse files
Remove validation for the IP protocol type (#6271) (#12118)
* Update api.yaml Remove validation for the protocol type * Resolve Build errors for removing IP protocol validation Signed-off-by: Modular Magician <[email protected]>
1 parent 1799b89 commit 1f4c1fa

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.changelog/6271.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
Remove validation for the IP protocol type
3+
```

google/resource_compute_packet_mirroring.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,9 @@ destination (egress) IP in the IP header. Only IPv4 is supported.`,
169169
"ip_protocols": {
170170
Type: schema.TypeList,
171171
Optional: true,
172-
Description: `Protocols that apply as a filter on mirrored traffic. Possible values: ["tcp", "udp", "icmp"]`,
172+
Description: `Possible IP protocols including tcp, udp, icmp and esp`,
173173
Elem: &schema.Schema{
174-
Type: schema.TypeString,
175-
ValidateFunc: validateEnum([]string{"tcp", "udp", "icmp"}),
174+
Type: schema.TypeString,
176175
},
177176
},
178177
},

website/docs/r/compute_packet_mirroring.html.markdown

+1-2
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,7 @@ The following arguments are supported:
223223

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

229228
* `cidr_ranges` -
230229
(Optional)

0 commit comments

Comments
 (0)