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 <liangwen12year@gmail.com>
This commit is contained in:
Wen Liang 2022-10-11 20:24:50 -04:00 committed by Fernando Fernández Mancera
parent c913aa0b93
commit 78f5e65c4d

View file

@ -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: