Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add the support for the optional route source parameter in nm provider #714

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

liangwen12year
Copy link
Collaborator

@liangwen12year liangwen12year commented Aug 4, 2024

Enhancement: Add the optional route source parameter for the nm provider

Reason: In a scenario where you have a machine with multiple public IP
addresses, typically due to a multi-WAN setup, the src parameter in the
context of routes allows you to specify which source IP address should
be used when sending packets via a specific route. This is crucial when
you want to ensure that outbound traffic uses a specific IP address tied
to a particular network interface, especially when dealing with multiple
WAN connections.

Result: Adding support for the src parameter in routes results in a
more powerful and flexible network configuration capability, especially
important in environments with multiple network interfaces or multiple
IP addresses, it provides better control over traffic routing.

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

Issue Tracker Tickets (Jira or BZ if any):

Copy link

codecov bot commented Aug 4, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 3 lines in your changes missing coverage. Please review.

Project coverage is 43.29%. Comparing base (34d1f2d) to head (169d276).
Report is 22 commits behind head on main.

Files Patch % Lines
library/network_connections.py 0.00% 2 Missing ⚠️
module_utils/network_lsr/argument_validator.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #714       +/-   ##
===========================================
+ Coverage   20.50%   43.29%   +22.79%     
===========================================
  Files          10       12        +2     
  Lines        1478     3109     +1631     
  Branches      433        0      -433     
===========================================
+ Hits          303     1346     +1043     
- Misses       1174     1763      +589     
+ Partials        1        0        -1     
Flag Coverage Δ
sanity ?

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@liangwen12year liangwen12year force-pushed the route_src branch 3 times, most recently from 872bb19 to 29fc8a1 Compare August 4, 2024 16:52
@liangwen12year liangwen12year changed the title nm: Add the support for route src feat: Add the support for the optional route source parameter in nm provider Aug 4, 2024
@liangwen12year
Copy link
Collaborator Author

[citest]

@liangwen12year
Copy link
Collaborator Author

[citest]

@liangwen12year
Copy link
Collaborator Author

This PR takes part of the code from #529.

…rovider

Enhancement: Add the optional route source parameter for the nm provider

Reason: In a scenario where you have a machine with multiple public IP
addresses, typically due to a multi-WAN setup, the src parameter in the
context of routes allows you to specify which source IP address should
be used when sending packets via a specific route.  This is crucial when
you want to ensure that outbound traffic uses a specific IP address tied
to a particular network interface, especially when dealing with multiple
WAN connections.

Result: Adding support for the src parameter in routes results in a
more powerful and flexible network configuration capability, especially
important in environments with multiple network interfaces or multiple
IP addresses, it provides better control over traffic routing.

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

Signed-off-by: Wen Liang <[email protected]>
@liangwen12year
Copy link
Collaborator Author

[citest]

@liangwen12year liangwen12year merged commit 8195188 into linux-system-roles:main Aug 5, 2024
29 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants