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

NDB: Route Replace Error #1179

Merged
merged 1 commit into from
Feb 27, 2024
Merged

Conversation

svenauhagen
Copy link
Contributor

When modifying an existing route with a different
Gateway and Interface the current code does not query the existing route correctly from the database.
Hence we end up with 2 routes in the database instead of replaceing the existing one.

We need to specifically limit the count query to the unique attributes of a route that is replaced which are DST, DST_LEN, Priority and Table.

Signed-Off-By: Sven Auhagen [email protected]

When modifying an existing route with a different
Gateway and Interface the current code does not query
the existing route correctly from the database.
Hence we end up with 2 routes in the database instead of
replaceing the existing one.

We need to specifically limit the count query to the unique
attributes of a route that is replaced which are DST, DST_LEN,
Priority and Table.

Signed-Off-By: Sven Auhagen <[email protected]>
@svinota
Copy link
Owner

svinota commented Feb 18, 2024

Thanks a lot! Testing

svinota added a commit that referenced this pull request Feb 27, 2024
@svinota svinota merged commit 6f16452 into svinota:master Feb 27, 2024
13 of 14 checks passed
@svinota
Copy link
Owner

svinota commented Feb 27, 2024

Thanks, merged!

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.

2 participants