mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 02:15:17 +00:00
feat: Support autoconnect_retries
There is no fine-grained control over the number of retries for automatically reconnecting a network connection in the role. This limitation can be problematic for certain use cases where extending the retry process is critical, particularly in environments with unstable networks. Introduce support for the `autoconnect_retries` property in nm provider of `network_connections` variable. This feature allows users to configure how many times NetworkManager will attempt to reconnect a connection after a autoconnect failure, providing more control over network stability and performance. Resolves: https://issues.redhat.com/browse/RHEL-61599 Signed-off-by: Wen Liang <liangwen12year@gmail.com>
This commit is contained in:
parent
b08aad243b
commit
5d73511d64
8 changed files with 74 additions and 0 deletions
|
|
@ -1866,6 +1866,12 @@ class ArgValidator_DictConnection(ArgValidatorDict):
|
|||
"type", enum_values=ArgValidator_DictConnection.VALID_TYPES
|
||||
),
|
||||
ArgValidatorBool("autoconnect", default_value=True),
|
||||
ArgValidatorNum(
|
||||
"autoconnect_retries",
|
||||
val_min=0,
|
||||
val_max=UINT32_MAX,
|
||||
default_value=-1,
|
||||
),
|
||||
ArgValidatorStr(
|
||||
"port_type",
|
||||
enum_values=ArgValidator_DictConnection.VALID_PORT_TYPES,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue