[PR #1836] [MERGED] Use fixed prefs #18064

Closed
opened 2026-08-05 04:08:05 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1836
Author: @lixmal
Created: 4/11/2024
Status: Merged
Merged: 4/12/2024
Merged by: @lixmal

Base: mainHead: fix/use-fixed-prefs


📝 Commits (3)

  • 0db20be Use fixed preference for rules
  • 76ef0f3 Move no support check
  • 56d04f2 Ignore existing/non-existing rules

📊 Changes

1 file changed (+8 additions, -42 deletions)

View changed files

📝 client/internal/routemanager/systemops_linux.go (+8 -42)

📄 Description

Describe your changes

On some kernels removing ip rules with a bunch of criteria lead to removal of the existing main rule. This approach makes sure we only delete rules of predefined preference

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/1836 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 4/11/2024 **Status:** ✅ Merged **Merged:** 4/12/2024 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `main` ← **Head:** `fix/use-fixed-prefs` --- ### 📝 Commits (3) - [`0db20be`](https://github.com/netbirdio/netbird/commit/0db20bec7c5f5e7329c9594017a50ef1778ee577) Use fixed preference for rules - [`76ef0f3`](https://github.com/netbirdio/netbird/commit/76ef0f355fb97f7fcc2c770ff06d1559f039b4f8) Move no support check - [`56d04f2`](https://github.com/netbirdio/netbird/commit/56d04f25ee366b2e4addb79fe422059dbde15a0a) Ignore existing/non-existing rules ### 📊 Changes **1 file changed** (+8 additions, -42 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/routemanager/systemops_linux.go` (+8 -42) </details> ### 📄 Description ## Describe your changes On some kernels removing ip rules with a bunch of criteria lead to removal of the existing `main` rule. This approach makes sure we only delete rules of predefined preference ## Issue ticket number and link ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 04:08:05 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#18064