svinota / pyroute2

Python Netlink and PF_ROUTE library — network configuration and monitoring
https://pyroute2.org/
Other
930 stars 244 forks source link

NDB: Route Replace Error #1179

Closed svenauhagen closed 4 months ago

svenauhagen commented 4 months ago

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 sven.auhagen@voleatech.de

svinota commented 4 months ago

Thanks a lot! Testing

svinota commented 4 months ago

Thanks, merged!