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

[SDFAB-1110] Add support for application filter #54

Merged
merged 22 commits into from
Mar 11, 2022

Conversation

EmanueleGallone
Copy link
Contributor

@EmanueleGallone EmanueleGallone commented Mar 9, 2022

PR's aim is to add an application filter flag, using the format <Protocol>:<IP>/<SubnetMask>:<Port>-<Port>:<Action>

depends on :

@EmanueleGallone EmanueleGallone marked this pull request as draft March 9, 2022 13:47
@EmanueleGallone EmanueleGallone changed the title Add support for multiple sdf filters per session Add support for application filter Mar 11, 2022
@EmanueleGallone EmanueleGallone force-pushed the add-multiple-sdf-filters branch 5 times, most recently from 34d259a to b4d2c7e Compare March 11, 2022 10:37
@EmanueleGallone EmanueleGallone marked this pull request as ready for review March 11, 2022 14:08
@EmanueleGallone EmanueleGallone force-pushed the add-multiple-sdf-filters branch from b4d2c7e to a63006e Compare March 11, 2022 14:26
@EmanueleGallone EmanueleGallone changed the title Add support for application filter [SDFAB-1110] Add support for application filter Mar 11, 2022
Copy link

@osinstom osinstom left a comment

Choose a reason for hiding this comment

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

LGTM, but I have a concern about gateClosed vs. appFIlter

int32 qfi = 6; // Should be uint8
bool gateClosed = 7;
bool gateClosed = 7; // If set, the application QERs will have the Gate status to closed.

Choose a reason for hiding this comment

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

Isn't gateClosed in conflict with appFilter now? What if we define gateClosed = true and appFilter = allow ? Which one have a precedence?

Copy link
Contributor Author

@EmanueleGallone EmanueleGallone Mar 11, 2022

Choose a reason for hiding this comment

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

Right. I removed the gate status flag. The only way to set the gate status is now by using the app-filter flag

internal/pfcpsim/helpers.go Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants