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
Reject invalid MeterConfig
s in Stratum-bfrt
#826
Conversation
Codecov Report
@@ Coverage Diff @@
## main #826 +/- ##
==========================================
- Coverage 78.56% 78.55% -0.01%
==========================================
Files 334 334
Lines 30057 30077 +20
==========================================
+ Hits 23613 23628 +15
- Misses 6444 6449 +5
|
1d3ab72
to
6d74db9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other than that looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good after addressing @pierventre's comment
6d74db9
to
3fbc063
Compare
I'm totally ok with merging, one remaining thought was that the check should happen in p4_service to cover all backends. |
P4RT meters are trTCM according to RFC 2698.
Not all P4
MeterConfig
s possible are actually valid. We don't want to solely rely on the SDE to reject those, therefore we introduce logic in Stratum to catch them early and with helpful error messages.