Skip to content

Commit 11a1156

Browse files
(feature): Add IPV6 enum for PolicyBasedRoute.yaml and fix incorrect description for default src and dest ranges. (#13070) (#23069)
[upstream:8ced020d2f2c377f54af08de0c40e78ca0593100] Signed-off-by: Modular Magician <[email protected]>
1 parent d968334 commit 11a1156

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.changelog/13070.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
networkconnectivity: added `IPV6` enum to `protocolVersion` field to `PolicyBasedRoute` resource
3+
```

google/services/networkconnectivity/resource_network_connectivity_policy_based_route.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ func ResourceNetworkConnectivityPolicyBasedRoute() *schema.Resource {
6969
Type: schema.TypeString,
7070
Required: true,
7171
ForceNew: true,
72-
ValidateFunc: verify.ValidateEnum([]string{"IPV4"}),
73-
Description: `Internet protocol versions this policy-based route applies to. Possible values: ["IPV4"]`,
72+
ValidateFunc: verify.ValidateEnum([]string{"IPV4", "IPV6"}),
73+
Description: `Internet protocol versions this policy-based route applies to. Possible values: ["IPV4", "IPV6"]`,
7474
},
7575
"dest_range": {
7676
Type: schema.TypeString,
7777
Optional: true,
7878
ForceNew: true,
79-
Description: `The destination IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.`,
79+
Description: `The destination IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0".`,
8080
Default: "0.0.0.0/0",
8181
},
8282
"ip_protocol": {
@@ -90,7 +90,7 @@ func ResourceNetworkConnectivityPolicyBasedRoute() *schema.Resource {
9090
Type: schema.TypeString,
9191
Optional: true,
9292
ForceNew: true,
93-
Description: `The source IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.`,
93+
Description: `The source IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0".`,
9494
Default: "0.0.0.0/0",
9595
},
9696
},

website/docs/r/network_connectivity_policy_based_route.html.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,19 +122,19 @@ The following arguments are supported:
122122
* `protocol_version` -
123123
(Required)
124124
Internet protocol versions this policy-based route applies to.
125-
Possible values are: `IPV4`.
125+
Possible values are: `IPV4`, `IPV6`.
126126

127127
* `ip_protocol` -
128128
(Optional)
129129
The IP protocol that this policy-based route applies to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
130130

131131
* `src_range` -
132132
(Optional)
133-
The source IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
133+
The source IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0".
134134

135135
* `dest_range` -
136136
(Optional)
137-
The destination IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
137+
The destination IP range of outgoing packets that this policy-based route applies to. Default is "0.0.0.0/0".
138138

139139
- - -
140140

0 commit comments

Comments
 (0)