Skip to content

Commit efad09c

Browse files
Google APIscopybara-github
authored andcommitted
feat: add new fields and enum values related to round-trip
docs: update a few outdated comments PiperOrigin-RevId: 618911579
1 parent 41d7081 commit efad09c

4 files changed

Lines changed: 60 additions & 4 deletions

File tree

google/cloud/networkmanagement/v1/connectivity_test.proto

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ message ConnectivityTest {
3838
};
3939

4040
// Required. Unique name of the resource using the form:
41-
// `projects/{project_id}/locations/global/connectivityTests/{test}`
41+
// `projects/{project_id}/locations/global/connectivityTests/{test_id}`
4242
string name = 1 [(google.api.field_behavior) = REQUIRED];
4343

4444
// The user-supplied description of the Connectivity Test.
@@ -122,6 +122,10 @@ message ConnectivityTest {
122122
// existing test.
123123
ProbingDetails probing_details = 14
124124
[(google.api.field_behavior) = OUTPUT_ONLY];
125+
126+
// Whether the test should skip firewall checking.
127+
// If not provided, we assume false.
128+
bool bypass_firewall_checks = 17;
125129
}
126130

127131
// Source or destination of the Connectivity Test.
@@ -277,7 +281,9 @@ message ReachabilityDetails {
277281
// The source and destination endpoints do not uniquely identify
278282
// the test location in the network, and the reachability result contains
279283
// multiple traces. For some traces, a packet could be delivered, and for
280-
// others, it would not be.
284+
// others, it would not be. This result is also assigned to
285+
// configuration analysis of return path if on its own it should be
286+
// REACHABLE, but configuration analysis of forward path is AMBIGUOUS.
281287
AMBIGUOUS = 4;
282288

283289
// The configuration analysis did not complete. Possible reasons are:

google/cloud/networkmanagement/v1/trace.proto

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ message Trace {
5252
// network state machine. It is critical to preserve the order of the steps
5353
// and avoid reordering or sorting them.
5454
repeated Step steps = 2;
55+
56+
// ID of trace. For forward traces, this ID is unique for each trace. For
57+
// return traces, it matches ID of associated forward trace. A single forward
58+
// trace can be associated with none, one or more than one return trace.
59+
int32 forward_trace_id = 4;
5560
}
5661

5762
// A simulated forwarding path is composed of multiple steps.
@@ -101,6 +106,15 @@ message Step {
101106
// A CloudRunRevisionInfo is populated with starting revision information.
102107
START_FROM_CLOUD_RUN_REVISION = 26;
103108

109+
// Initial state: packet originating from a Storage Bucket. Used only for
110+
// return traces.
111+
// The storage_bucket information is populated.
112+
START_FROM_STORAGE_BUCKET = 29;
113+
114+
// Initial state: packet originating from a published service that uses
115+
// Private Service Connect. Used only for return traces.
116+
START_FROM_PSC_PUBLISHED_SERVICE = 30;
117+
104118
// Config checking state: verify ingress firewall rule.
105119
APPLY_INGRESS_FIREWALL_RULE = 4;
106120

@@ -336,6 +350,12 @@ message FirewallInfo {
336350
// For details, see [Regional network firewall
337351
// policies](https://cloud.google.com/firewall/docs/regional-firewall-policies).
338352
NETWORK_REGIONAL_FIREWALL_POLICY_RULE = 6;
353+
354+
// Tracking state for response traffic created when request traffic goes
355+
// through allow firewall rule.
356+
// For details, see [firewall rules
357+
// specifications](https://cloud.google.com/firewall/docs/firewalls#specifications)
358+
TRACKING_STATE = 101;
339359
}
340360

341361
// The display name of the VPC firewall rule. This field is not applicable
@@ -1064,7 +1084,7 @@ message DropInfo {
10641084
// Route's next hop resource is not found.
10651085
ROUTE_NEXT_HOP_RESOURCE_NOT_FOUND = 43;
10661086

1067-
// Route's next hop instance doesn't hace a NIC in the route's network.
1087+
// Route's next hop instance doesn't have a NIC in the route's network.
10681088
ROUTE_NEXT_HOP_INSTANCE_WRONG_NETWORK = 49;
10691089

10701090
// Route's next hop IP address is not a primary IP address of the next hop

google/cloud/networkmanagement/v1beta1/connectivity_test.proto

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ message ConnectivityTest {
122122
// existing test.
123123
ProbingDetails probing_details = 14
124124
[(google.api.field_behavior) = OUTPUT_ONLY];
125+
126+
// Whether the test should skip firewall checking.
127+
// If not provided, we assume false.
128+
bool bypass_firewall_checks = 17;
125129
}
126130

127131
// Source or destination of the Connectivity Test.
@@ -277,7 +281,9 @@ message ReachabilityDetails {
277281
// The source and destination endpoints do not uniquely identify
278282
// the test location in the network, and the reachability result contains
279283
// multiple traces. For some traces, a packet could be delivered, and for
280-
// others, it would not be.
284+
// others, it would not be. This result is also assigned to
285+
// configuration analysis of return path if on its own it should be
286+
// REACHABLE, but configuration analysis of forward path is AMBIGUOUS.
281287
AMBIGUOUS = 4;
282288

283289
// The configuration analysis did not complete. Possible reasons are:

google/cloud/networkmanagement/v1beta1/trace.proto

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ message Trace {
5252
// network state machine. It is critical to preserve the order of the steps
5353
// and avoid reordering or sorting them.
5454
repeated Step steps = 2;
55+
56+
// ID of trace. For forward traces, this ID is unique for each trace. For
57+
// return traces, it matches ID of associated forward trace. A single forward
58+
// trace can be associated with none, one or more than one return trace.
59+
int32 forward_trace_id = 4;
5560
}
5661

5762
// A simulated forwarding path is composed of multiple steps.
@@ -101,6 +106,15 @@ message Step {
101106
// A CloudRunRevisionInfo is populated with starting revision information.
102107
START_FROM_CLOUD_RUN_REVISION = 26;
103108

109+
// Initial state: packet originating from a Storage Bucket. Used only for
110+
// return traces.
111+
// The storage_bucket information is populated.
112+
START_FROM_STORAGE_BUCKET = 29;
113+
114+
// Initial state: packet originating from a published service that uses
115+
// Private Service Connect. Used only for return traces.
116+
START_FROM_PSC_PUBLISHED_SERVICE = 30;
117+
104118
// Config checking state: verify ingress firewall rule.
105119
APPLY_INGRESS_FIREWALL_RULE = 4;
106120

@@ -124,9 +138,13 @@ message Step {
124138
ARRIVE_AT_INSTANCE = 9;
125139

126140
// Forwarding state: arriving at a Compute Engine internal load balancer.
141+
// Deprecated in favor of the `ANALYZE_LOAD_BALANCER_BACKEND` state, not
142+
// used in new tests.
127143
ARRIVE_AT_INTERNAL_LOAD_BALANCER = 10 [deprecated = true];
128144

129145
// Forwarding state: arriving at a Compute Engine external load balancer.
146+
// Deprecated in favor of the `ANALYZE_LOAD_BALANCER_BACKEND` state, not
147+
// used in new tests.
130148
ARRIVE_AT_EXTERNAL_LOAD_BALANCER = 11 [deprecated = true];
131149

132150
// Forwarding state: arriving at a Cloud VPN gateway.
@@ -336,6 +354,12 @@ message FirewallInfo {
336354
// For details, see [Regional network firewall
337355
// policies](https://cloud.google.com/firewall/docs/regional-firewall-policies).
338356
NETWORK_REGIONAL_FIREWALL_POLICY_RULE = 6;
357+
358+
// Tracking state for response traffic created when request traffic goes
359+
// through allow firewall rule.
360+
// For details, see [firewall rules
361+
// specifications](https://cloud.google.com/firewall/docs/firewalls#specifications)
362+
TRACKING_STATE = 101;
339363
}
340364

341365
// The display name of the VPC firewall rule. This field is not applicable

0 commit comments

Comments
 (0)