Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds check for default objects #429

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

linguini-dev
Copy link
Contributor

After #270, PCW also cleans up network objects (Firewall rules, Routes, VPCs and etc.).

We do not want to delete the default routes of the networks - https://progress.opensuse.org/issues/174262.

This PR adds a general check if the object has default in the name.

Example run:

2025-02-04 09:23:32,296 ocw.lib.gce  DEBUG    [ccoe] Routes cleanup
2025-02-04 09:23:32,641 ocw.lib.gce  DEBUG    [ccoe] 3 routes found
2025-02-04 09:23:32,685 ocw.lib.gce  INFO     [ccoe] Skipped deletion of default route default-route-155840a10ef83e70
2025-02-04 09:23:32,685 ocw.lib.gce  INFO     [ccoe] Skipped deletion of default route default-route-63d1541d1fcd3a75
2025-02-04 09:23:32,685 ocw.lib.gce  INFO     [ccoe] Skipped deletion of default route default-route-9c0a0f17c748564a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant