-
Notifications
You must be signed in to change notification settings - Fork 17
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
IP address and policy removal on connection update #437
IP address and policy removal on connection update #437
Conversation
* Based on interfaces addresses, IPs in IPContext are filtered: to add/to removed Signed-off-by: Lionel Jouin <lionel.jouin@est.tech>
* Based on memory, Policies are filtered: to add/to removed * Doesn't support forwarder resiliency. If the forwarder restart, the existing policy routes are forgotten Signed-off-by: Lionel Jouin <lionel.jouin@est.tech>
* Flush table * Remove empty ip rule entries on close * Remove unused code Signed-off-by: Lionel Jouin <lionel.jouin@est.tech>
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
1ee03bb
to
982980d
Compare
@LionelJouin @denis-tingaikin @edwarnicke @NikitaSkrynnik This is continuation of: #433 @LionelJouin Could you please check, if this solves your problems? |
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 just tried it, it works fine
delete(ps, tableID) | ||
tableIDs.Store(conn.GetId(), ps) | ||
} | ||
if len(ps) == 0 { |
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 this is no longer needed (if len(ps) == 0)
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.
Yes, thank you. I simplified a little
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
87e623f
to
3591e49
Compare
…k-kernel@main PR link: networkservicemesh/sdk-kernel#437 Commit: 0ca41e9 Author: Denis Tingaikin Date: 2022-03-25 19:32:57 +0300 Message: - Merge pull request #437 from glazychev-art/issue-426 Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
…k-kernel@main PR link: networkservicemesh/sdk-kernel#437 Commit: 0ca41e9 Author: Denis Tingaikin Date: 2022-03-25 19:32:57 +0300 Message: - Merge pull request #437 from glazychev-art/issue-426 Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
Сontinuation of: #433
Signed-off-by: Artem Glazychev artem.glazychev@xored.com