-
Notifications
You must be signed in to change notification settings - Fork 363
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
Fix issue in UDP/SCTP Service flow in Antrea Proxy #1398
Conversation
Thanks for your PR. The following commands are available:
|
Codecov Report
@@ Coverage Diff @@
## master #1398 +/- ##
==========================================
+ Coverage 64.45% 64.55% +0.10%
==========================================
Files 159 159
Lines 12664 12672 +8
==========================================
+ Hits 8162 8181 +19
+ Misses 3644 3641 -3
+ Partials 858 850 -8
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Thanks for fixing it. LGTM.
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.
LGTM, thanks for the quick fix and test
for idx, ipByte := range ipBytes { | ||
if ipByte < 16 && idx > 0 { | ||
ipStr = fmt.Sprintf("%s0%x", ipStr, ipByte) | ||
} else { | ||
ipStr = fmt.Sprintf("%s%x", ipStr, ipByte) | ||
} | ||
} | ||
return ipStr |
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 return "0x" + hex.EncodeToString(ipBytes)
will work?
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.
Thanks for the suggestion, updated.
/test-all |
/test-e2e |
/test-conformance |
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.
a typo, otherwise LGTM
1. Set IP protocol number according to the Service protocol type in "learn" flow. 2. Add integration test cases to ensure the flow is realized as expected.
/test-all |
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.
LGTM
1. Set IP protocol number according to the Service protocol type in "learn" flow. 2. Add integration test cases to ensure the flow is realized as expected.
1. Set IP protocol number according to the Service protocol type in "learn" flow. 2. Add integration test cases to ensure the flow is realized as expected.
Fixes #1395