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: Support blackhole, prohibit and unreachable route types #662

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

liangwen12year
Copy link
Collaborator

When users have BGP routing setups, it is common practice to blackhole some less-specific routes in order to avoid routing loops, and the BGP router might insert a more specific route dynamically afterwards.

Enhancement:

Reason:

Result:

Issue Tracker Tickets (Jira or BZ if any):

@liangwen12year liangwen12year changed the title feat: Add support for the route-type feat: Add support for the route_type Dec 19, 2023
Copy link

codecov bot commented Dec 19, 2023

Codecov Report

Attention: 12 lines in your changes are missing coverage. Please review.

Comparison is base (735d4be) 45.03% compared to head (cc592c2) 45.00%.

Files Patch % Lines
library/network_connections.py 8.33% 11 Missing ⚠️
module_utils/network_lsr/argument_validator.py 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #662      +/-   ##
==========================================
- Coverage   45.03%   45.00%   -0.04%     
==========================================
  Files          12       12              
  Lines        3080     3100      +20     
  Branches      428      433       +5     
==========================================
+ Hits         1387     1395       +8     
- Misses       1692     1704      +12     
  Partials        1        1              
Flag Coverage Δ
sanity 20.50% <0.00%> (-0.12%) ⬇️

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
Copy link
Collaborator Author

[citest]

@liangwen12year liangwen12year force-pushed the route_type branch 2 times, most recently from 5a86e82 to c3ba56e Compare December 20, 2023 20:55
@liangwen12year
Copy link
Collaborator Author

[citest]

@liangwen12year
Copy link
Collaborator Author

[citest]

@liangwen12year
Copy link
Collaborator Author

[citest]

@liangwen12year
Copy link
Collaborator Author

[citest]

@liangwen12year
Copy link
Collaborator Author

[citest bad]

@liangwen12year liangwen12year force-pushed the route_type branch 2 times, most recently from 464b417 to 1a4272c Compare January 8, 2024 13:40
@liangwen12year
Copy link
Collaborator Author

[citest]

@liangwen12year
Copy link
Collaborator Author

[citest]

@liangwen12year
Copy link
Collaborator Author

[citest]

@liangwen12year liangwen12year requested a review from richm January 9, 2024 15:48
richm
richm previously approved these changes Jan 9, 2024
@liangwen12year liangwen12year force-pushed the route_type branch 3 times, most recently from 020b651 to f0e079b Compare January 10, 2024 17:22
@liangwen12year
Copy link
Collaborator Author

@tyll , Thanks for the comments, I think that I addressed them all.

@liangwen12year liangwen12year force-pushed the route_type branch 2 times, most recently from 982e400 to 667ced6 Compare January 10, 2024 17:57
@liangwen12year liangwen12year changed the title feat: Add support for the route_type feat: Add support for blackhole/prohibit/unreachable route type Jan 10, 2024
@liangwen12year
Copy link
Collaborator Author

[citest]

@liangwen12year liangwen12year changed the title feat: Add support for blackhole/prohibit/unreachable route type feat: Support blackhole, prohibit and unreachable route types Jan 10, 2024
@liangwen12year
Copy link
Collaborator Author

[citest]

@liangwen12year
Copy link
Collaborator Author

[citest]

@liangwen12year liangwen12year requested review from tyll and richm January 11, 2024 01:52
@tyll
Copy link
Member

tyll commented Jan 12, 2024

Only minor remarks from me, I don't need to re-review this. I am fine with someone else approving this after the changes.

@liangwen12year
Copy link
Collaborator Author

[citest]

It is useful and common practice to configure the routes with blackhole,
prohibit, and unreachable route types when users have BGP routing
setups.

Notice that this feature is only for nm provider using
`network_connections` variable. Configuring blackhole, prohibit, and
unreachable route types is also supported by using `network_state` since
nmstate version 2.2.20 (the setting name is `route-type`).

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

Signed-off-by: Wen Liang <liangwen12year@gmail.com>
@liangwen12year
Copy link
Collaborator Author

[citest]

@richm richm merged commit b7492a2 into linux-system-roles:main Jan 12, 2024
28 of 36 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