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

Add ability to test dplane_fpm_nl.c file #15369

Merged
merged 8 commits into from
Mar 5, 2024

Conversation

donaldsharp
Copy link
Member

Add the ability to test the fpm module dplane_fpm_nl.c.

This includes a new daemon that needs to be added to the system from:
[email protected]:donaldsharp/fpm-stub.git

@frrbot frrbot bot added documentation tests Topotests, make check, etc zebra labels Feb 14, 2024
@donaldsharp donaldsharp force-pushed the fpm_stub_addition branch 2 times, most recently from 9ff4f83 to a9b0c01 Compare February 14, 2024 22:05
@github-actions github-actions bot added size/XL and removed size/L labels Feb 14, 2024
@donaldsharp donaldsharp force-pushed the fpm_stub_addition branch 4 times, most recently from 7859716 to 8c7b126 Compare February 15, 2024 15:22
@donaldsharp donaldsharp force-pushed the fpm_stub_addition branch 2 times, most recently from 12f4e88 to 51e8805 Compare February 15, 2024 15:35
@donaldsharp
Copy link
Member Author

FRRbot's failure is because black and checkpatch disagree with each other. Frankly I prefer blacks output so I'm leaving it alone.

@donaldsharp donaldsharp force-pushed the fpm_stub_addition branch 5 times, most recently from 6ee3d1d to eab21bd Compare February 16, 2024 04:44
from lib.topolog import logger


pytestmark = [pytest.mark.sharpd]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we add another mark for FPM? tests/topotests/pytest.ini

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@donaldsharp donaldsharp force-pushed the fpm_stub_addition branch 2 times, most recently from 1990ec1 to bc85aaa Compare February 21, 2024 18:00
@frrbot frrbot bot added the packaging label Feb 21, 2024
@@ -102,6 +102,14 @@ Description: FRRouting suite - BGP RPKI support (rtrlib)
number.
Build-Profiles: <!pkg.frr.nortrlib>

Package: frr-test-tools
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't be good for RPM too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I spent 2 seconds looking at it and decided I have no idea how to do this in rpm land. If someone needs this as part of the rpm stuff, then they can add it. I feel it is ok for this approach because of the low usage of rpms

@donaldsharp donaldsharp force-pushed the fpm_stub_addition branch 2 times, most recently from 3dfd7e8 to f5208d7 Compare March 1, 2024 16:23
checkpatch.pl wants you to use ARRAY_SIZE in a kernel
header file.  We don't have access to this kernel header
file for normal compilation.  I'm just going to remove it.

Signed-off-by: Donald Sharp <[email protected]>
Add a tiny fpm_listener program to allow FRR to test the
fpm.

Signed-off-by: Donald Sharp <[email protected]>
Add a command to get the status of the dplane_fpm_nl
module.

Signed-off-by: Donald Sharp <[email protected]>
Add the ability to run a fpm listener to the testing
system.  This is nothing more just allowing the test
system to bring it up.

Signed-off-by: Donald Sharp <[email protected]>
Ensure that the fpm module connects to the specified listener
and then ensure that 10k routes from sharpd are installed
into the system and then are removed.

Signed-off-by: Donald Sharp <[email protected]>
This package will hold test tools that are built and useful for
developers of FRR but not useful for everyday usage of FRR.  This
is separted out because these are useful enough to have in their
own package.

Signed-off-by: Donald Sharp <[email protected]>
@mwinter-osr mwinter-osr self-requested a review March 5, 2024 12:05
Copy link
Member

@mwinter-osr mwinter-osr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks all good now. Thanks

@mwinter-osr mwinter-osr merged commit a449186 into FRRouting:master Mar 5, 2024
9 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