-
Notifications
You must be signed in to change notification settings - Fork 370
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
[Multicast] add Multicast networkpolicy support #3660
Conversation
34f8bb0
to
54591a5
Compare
0320e30
to
fc991e9
Compare
This pull request introduces 2 alerts when merging fc991e9 into f08aecd - view on LGTM.com new alerts:
|
This pull request introduces 2 alerts when merging 8d29a75 into 8f451f7 - view on LGTM.com new alerts:
|
This pull request introduces 2 alerts when merging 089d394 into 8f451f7 - view on LGTM.com new alerts:
|
Codecov Report
@@ Coverage Diff @@
## main #3660 +/- ##
===========================================
+ Coverage 35.72% 64.46% +28.73%
===========================================
Files 121 288 +167
Lines 16894 41710 +24816
===========================================
+ Hits 6035 26887 +20852
- Misses 10366 12665 +2299
- Partials 493 2158 +1665
Flags with carried forward coverage won't be shown. Click here to find out more.
|
This pull request introduces 2 alerts when merging f96b372 into 8f451f7 - view on LGTM.com new alerts:
|
3ab626e
to
18b52b9
Compare
This pull request introduces 2 alerts when merging 18b52b9 into 09d11e9 - view on LGTM.com new alerts:
|
cc2c9cd
to
60eb770
Compare
This pull request introduces 2 alerts when merging 60eb770 into 50d33be - view on LGTM.com new alerts:
|
/test-conformance |
/test-multicast-e2e |
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
03cd705
to
82772cf
Compare
/test-conformance |
dc24b07
to
a69eb21
Compare
a69eb21
to
20b0d80
Compare
1. For multicast traffic, we support ingress rules for IGMP, and egress rules for multicast data traffic. And apply NetworkPolicy to real traffic for both. Ingress for multicast traffic is not supported now. 2. While egress for IGMP only supports IGMP report, which is handled by packetIn. This patch maintainsvrule map for each group address to fetch the rule which matches the member and also has the highest priority. And packetIn will decide to allow or drop the IGMP report traffic based on the matched rule. Signed-off-by: Bin Liu <[email protected]>
20b0d80
to
faae27b
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.
LGTM
/test-conformance |
/test-ipv6-e2e |
/test-ipv6-e2e |
In commit message:
I suppose you want to say "This patch maintains a rule map for each group address", right? If yes, please update PR description directly. I will update commit message when merging. |
implement network policy for multicast
For multicast traffic, we support ingress rules for IGMP, and egress rules for multicast data traffic.
And apply NetworkPolicy to real traffic for both. Ingress for multicast traffic is not supported now.
While egress for IGMP only supports IGMP report, which is handled by packetIn. This patch
maintains a rule map for each group address to fetch the rule which matches the member and also
has the highest priority. And packetIn will decide to allow or drop the IGMP report traffic
based on the matched rule.