summaryrefslogtreecommitdiff
path: root/src/tests/test_initial_setup.py
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-01-04 12:05:50 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-01-04 12:05:50 +0000
commitb1004dcd24ba09d51eae2aaabd80b316275d8f88 (patch)
tree31973ea4698c512796d21556a3f185171dbc228f /src/tests/test_initial_setup.py
parentf5af95be4f66380d213771b975c63361e27616ef (diff)
downloadvyos-1x-b1004dcd24ba09d51eae2aaabd80b316275d8f88.tar.gz
vyos-1x-b1004dcd24ba09d51eae2aaabd80b316275d8f88.zip
T1237: Fix failover route install route with diff metrics
If there is no route in the routing table (requires install route) it checks routing table and returns best route None But if we have 2 routes to the same dest ip but with different metrics it doesn't get None (not first route install) It cause that bast metric route cannot be installed (wrong logic) Add func "is_route_exists" and check route/gateway/metric for the required route
Diffstat (limited to 'src/tests/test_initial_setup.py')
0 files changed, 0 insertions, 0 deletions