network icon indicating copy to clipboard operation
network copied to clipboard

feat: Support `wait_ip` property

Open liangwen12year opened this issue 1 year ago • 8 comments

Enhancement:

Added support for the may_fail4 and may_fail6 properties, allowing the network configuration to proceed even if the corresponding IP configuration times out. This enables flexibility in scenarios such as IPv6-only networks, where the overall network configuration can still succeed when IPv4 configuration fails but IPv6 completes successfully.

Reason:

Result:

Issue Tracker Tickets (Jira or BZ if any):

Resolves: https://issues.redhat.com/browse/RHEL-63026

liangwen12year avatar Oct 17 '24 16:10 liangwen12year

Codecov Report

Attention: Patch coverage is 14.28571% with 6 lines in your changes missing coverage. Please review.

Project coverage is 43.21%. Comparing base (89d7148) to head (624bca5). Report is 19 commits behind head on main.

Files with missing lines Patch % Lines
library/network_connections.py 0.00% 4 Missing :warning:
module_utils/network_lsr/argument_validator.py 33.33% 2 Missing :warning:
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #741       +/-   ##
===========================================
+ Coverage   20.40%   43.21%   +22.81%     
===========================================
  Files          10       12        +2     
  Lines        1485     3117     +1632     
  Branches      436        0      -436     
===========================================
+ Hits          303     1347     +1044     
- Misses       1181     1770      +589     
+ Partials        1        0        -1     
Flag Coverage Δ
sanity ?

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Oct 17 '24 16:10 codecov[bot]

[citest]

liangwen12year avatar Oct 17 '24 16:10 liangwen12year

[citest]

liangwen12year avatar Oct 17 '24 17:10 liangwen12year

[citest]

spetrosi avatar Oct 21 '24 09:10 spetrosi

[citest_bad]

spetrosi avatar Oct 21 '24 11:10 spetrosi

[citest]

spetrosi avatar Oct 21 '24 12:10 spetrosi

It seems more user friendly to use the Nmstate syntax here with wait_ip: any|ipv4|ipv6|ipv4+ipv6 - https://nmstate.io/devel/yaml_api.html

tyll avatar Oct 21 '24 14:10 tyll

It seems more user friendly to use the Nmstate syntax here with wait_ip: any|ipv4|ipv6|ipv4+ipv6 - https://nmstate.io/devel/yaml_api.html

I changed it to align with nmstate schema.

liangwen12year avatar Oct 23 '24 01:10 liangwen12year

[citest]

liangwen12year avatar Oct 23 '24 17:10 liangwen12year

Added support for the may_fail4 and may_fail6 properties, allowing the network configuration to proceed even if the corresponding IP configuration times out. This enables flexibility in scenarios such as IPv6-only networks, where the overall network configuration can still succeed when IPv4 configuration fails but IPv6 completes successfully.

This should be changed to describe wait_ip

richm avatar Oct 23 '24 18:10 richm

Added support for the may_fail4 and may_fail6 properties, allowing the network configuration to proceed even if the corresponding IP configuration times out. This enables flexibility in scenarios such as IPv6-only networks, where the overall network configuration can still succeed when IPv4 configuration fails but IPv6 completes successfully.

This should be changed to describe wait_ip

I updated it, thanks.

liangwen12year avatar Oct 23 '24 20:10 liangwen12year

[citest]

liangwen12year avatar Oct 23 '24 20:10 liangwen12year

@liangwen12year ready to merge?

richm avatar Oct 25 '24 21:10 richm

Approved, through I don't like we are expanding network_connections, especially we are introducing nmstate stuff into this NM specific schema. Use who request this should use nmstate schema instead of request RFE to network_connections.

I actually requested the issue reporter to use the network_state variable, but the reporter has not tried it yet, https://github.com/linux-system-roles/network/issues/735#issuecomment-2394097149. I also updated the ReadMe to reflect that the future of the network role is promoting using network_state variable instead of the network_connections, hopefully, we will have fewer feature requests in the network_connections variable when the feature is available in the network_state .

liangwen12year avatar Oct 29 '24 13:10 liangwen12year