Skip to content

add enable field to packetmirroring resource#16036

Merged
c2thorn merged 3 commits intoGoogleCloudPlatform:mainfrom
Dawid212:packetmirroring_gap
Feb 11, 2026
Merged

add enable field to packetmirroring resource#16036
c2thorn merged 3 commits intoGoogleCloudPlatform:mainfrom
Dawid212:packetmirroring_gap

Conversation

@Dawid212
Copy link
Copy Markdown
Contributor

@Dawid212 Dawid212 commented Dec 28, 2025

this pr adds enable field to packet mirroring resource

compute: added `enable` field to `google_compute_packet_mirroring`

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Dec 28, 2025
@github-actions github-actions Bot requested a review from c2thorn December 28, 2025 23:22
@github-actions
Copy link
Copy Markdown

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

Googlers: For automatic test runs see go/terraform-auto-test-runs.

@c2thorn, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

Copy link
Copy Markdown
Member

@c2thorn c2thorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should test updating the value to false and then true again via an update test: https://googlecloudplatform.github.io/magic-modules/test/test/#add-an-update-test

description: |
Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring
policy will not be enforced on the network. The default is TRUE.
default_value: "TRUE"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for a top-level field like this, I'd prefer to use default_from_api: true instead of default_value to avoid suddenly enabling potentially dormant existing resources

@github-actions
Copy link
Copy Markdown

@Dawid212, this PR is waiting for action from you. If no action is taken, this PR will be closed in 28 days.

Please address any comments or change requests, or re-request review from a core reviewer if no action is required.

Image showing the re-request review button

This notification can be disabled with the disable-automatic-closure label.

@github-actions
Copy link
Copy Markdown

@Dawid212, this PR is waiting for action from you. If no action is taken, this PR will be closed in 14 days.

Please address any comments or change requests, or re-request review from a core reviewer if no action is required.

Image showing the re-request review button

This notification can be disabled with the disable-automatic-closure label.

@github-actions github-actions Bot requested a review from c2thorn February 2, 2026 00:35
Copy link
Copy Markdown
Member

@c2thorn c2thorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Dawid212, thanks for responding with an update.

I want to clarify that the update test should be a separate multi-step written-out test following these instructions: https://googlecloudplatform.github.io/magic-modules/test/test/#add-an-update-test

You would need to create a new test file in https://github.com/GoogleCloudPlatform/magic-modules/tree/main/mmv1/third_party/terraform/services/compute for the packet mirroring resource

@github-actions github-actions Bot requested a review from c2thorn February 7, 2026 20:27
@modular-magician modular-magician added service/compute-packet-mirroring and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Feb 10, 2026
@modular-magician
Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 5 files changed, 298 insertions(+))
google-beta provider: Diff ( 5 files changed, 298 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 10 insertions(+))
Open in Cloud Shell: Diff ( 1 file changed, 1 insertion(+))

@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 1336
Passed tests: 1248
Skipped tests: 86
Affected tests: 2

Click here to see the affected service packages
  • compute

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccComputePacketMirroring_computePacketMirroringFullExample
  • TestAccComputePacketMirroring_update

Get to know how VCR tests work

@modular-magician
Copy link
Copy Markdown
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccComputePacketMirroring_computePacketMirroringFullExample [Debug log]
TestAccComputePacketMirroring_update [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

@c2thorn c2thorn added this pull request to the merge queue Feb 11, 2026
Merged via the queue into GoogleCloudPlatform:main with commit 3a90eb9 Feb 11, 2026
32 checks passed
JianweiQ pushed a commit to JianweiQ/magic-modules that referenced this pull request Feb 20, 2026
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Feb 24, 2026
kefang2 pushed a commit to kefang2/magic-modules that referenced this pull request Feb 28, 2026
aditikumarii-google pushed a commit to aditikumarii-google/magic-modules that referenced this pull request Mar 10, 2026
ChuAmberZhang pushed a commit to ChuAmberZhang/magic-modules that referenced this pull request Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants