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

infranw: cleanup pending remote endpoints gracefully on network delete #31

Merged
merged 2 commits into from
May 2, 2016

Conversation

pkeerthana
Copy link
Contributor

infra nw automatically creates endpoints on every node. When infra nw is deleted, netplugin has sufficient knowledge to cleanup only local endpoints. Remote endpoints synced via ofnet will still be pending in ofnet database, since not all nodes have received and processed infra nw delete to cleanup their endpoints. In this case, cleanup the remote endpoints gracefully in ofnet instead of crash.

@@ -569,7 +569,18 @@ func (self *OfnetAgent) RemoveNetwork(vlanId uint16, vni uint32, Gw string, Vrf
// make sure there are no endpoints still installed in this vlan
for _, endpoint := range self.endpointDb {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this block needs to be moved to the beginning of this function. i.e. clean up the endpoints before performing any other delete action.

@shaleman
Copy link
Contributor

shaleman commented May 1, 2016

LGTM
Thanks for adding the tests..

@shaleman shaleman merged commit bc37eae into contiv:master May 2, 2016
@jojimt
Copy link
Contributor

jojimt commented May 2, 2016

LGTM and thanks for adding the tests :)

GraysonWu pushed a commit to GraysonWu/ofnet that referenced this pull request Aug 19, 2022
1. Maintain a variable for Switch connection, and close the previous
   one when reconnecting to Switch. This can ensure only one unix
   socket is used between Controller and Switch.
2. Add timeout when sending message to Switch or waiting for message
   from Switch, to avoid Controller entering blocking state in a long
   time.
3. Remove a duplicated SwitchFeatures request, and send SwitchConfig
   and Controller setting message when switch is connected.
4. Resolve OpenFlow version misconfiguration bugs in Hello message,
   and PortModification message.

Signed-off-by: wenyingd <wenyingd@vmware.com>
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