mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-20 17:59:00 +00:00
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:
parent
c913aa0b93
commit
78f5e65c4d
1 changed files with 4 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue