- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2.2k
Support P4.org In-band Network Telemetry (INT) #4230
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
base: master
Are you sure you want to change the base?
Conversation
| Codecov Report
 Additional details and impacted files@@             Coverage Diff             @@
##           master    #4230       +/-   ##
===========================================
- Coverage   81.77%   47.55%   -34.22%     
===========================================
  Files         331      325        -6     
  Lines       76721    71527     -5194     
===========================================
- Hits        62736    34016    -28720     
- Misses      13985    37511    +23526     
 | 
84a8dde    to
    48a8efd      
    Compare
  
    1.support INT MX/MD mode. 2.support INT over IPv4/IPv6+TCP/UDP/VXLAN/GRE/GENEVE. 3.add 28 testcases for INT.
48a8efd    to
    5b44983      
    Compare
  
    | else: | ||
| return self.sprintf("TCP %TCP.sport% > %TCP.dport% %TCP.flags%") | ||
|  | ||
| def guess_payload_class(self, payload): | 
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.
I think its not a good idea to import your contrib layer in guess_payload_class of TCP. Can you maybe move this port to dispatch_hook?
| else: | ||
| return self.sprintf("UDP %UDP.sport% > %UDP.dport%") | ||
|  | ||
| def guess_payload_class(self, payload): | 
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.
Same here
| Thanks for your PR. Your code looks good so far, besides my to comments. | 
1.support INT MX/MD mode.
2.support INT over IPv4/IPv6+TCP/UDP/VXLAN/GRE/GENEVE.
3.add 28 testcases for INT.