From 78f5e65c4d3d44f3a879ea77afefeae3b8c40631 Mon Sep 17 00:00:00 2001 From: Wen Liang Date: Tue, 11 Oct 2022 20:24:50 -0400 Subject: [PATCH] Set the route metric when testing the 'auto_gateway' For initscripts provider, the metric for the default route defaults to 0, as a result, the default route can take precedence or blindly ingore other routes. Adding a higher route metric value to honor other routes during the route selection. Signed-off-by: Wen Liang --- tests/playbooks/tests_auto_gateway.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/playbooks/tests_auto_gateway.yml b/tests/playbooks/tests_auto_gateway.yml index 5dcc96c..c0e9d32 100644 --- a/tests/playbooks/tests_auto_gateway.yml +++ b/tests/playbooks/tests_auto_gateway.yml @@ -31,6 +31,10 @@ - "203.0.113.2/24" gateway6: "2001:db8::1" gateway4: "203.0.113.1" + # change the default route metric to higher value so that it will + # not take precedence over other routes or not ignore other + # routes + route_metric4: 4294967295 - include_tasks: tasks/assert_device_present.yml - include_tasks: tasks/assert_profile_present.yml vars: