Skip to content
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

Merged
merged 6 commits into from
Mar 25, 2022

Conversation

glazychev-art
Copy link
Contributor

Сontinuation of: #433

Signed-off-by: Artem Glazychev [email protected]

LionelJouin and others added 5 commits March 21, 2022 16:42
* Based on interfaces addresses, IPs in IPContext are filtered: to add/to removed

Signed-off-by: Lionel Jouin <[email protected]>
* 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 <[email protected]>
* Flush table
* Remove empty ip rule entries on close
* Remove unused code

Signed-off-by: Lionel Jouin <[email protected]>
Signed-off-by: Artem Glazychev <[email protected]>
Signed-off-by: Artem Glazychev <[email protected]>
@glazychev-art
Copy link
Contributor Author

@LionelJouin @denis-tingaikin @edwarnicke @NikitaSkrynnik

This is continuation of: #433
We added a dump for iptables here because of: #433 (comment)

@LionelJouin Could you please check, if this solves your problems?

Copy link
Member

@LionelJouin LionelJouin left a 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 {
Copy link
Member

@LionelJouin LionelJouin Mar 25, 2022

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)

Copy link
Contributor Author

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 <[email protected]>
@denis-tingaikin denis-tingaikin merged commit 0ca41e9 into networkservicemesh:main Mar 25, 2022
nsmbot pushed a commit to networkservicemesh/sdk-vpp that referenced this pull request Mar 25, 2022
…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 <[email protected]>
nsmbot pushed a commit to networkservicemesh/sdk-sriov that referenced this pull request Mar 25, 2022
…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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants