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

[bgpcfgd] bgp peer is not added successfully sometimes #4014

Closed
wants to merge 1 commit into from

Conversation

tylerlinp
Copy link
Contributor

- What I did
Fix the issue #3862 (sonic-net/sonic-utilities#782).

- How I did it
Checking meta existance first in peer handler, if not then return false.

- How to verify it
Test many times by rebooting with bgp configs(with vrf or not).

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@tylerlinp
Copy link
Contributor Author

retest vs please

@@ -283,6 +283,8 @@ class BGPPeerMgr(Manager):
}

def set_handler(self, key, data):
if not self.directory.path_exist("meta", "localhost/bgp_asn"):
return False
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 that the change must be following:

     def on_deps_change(self):
+        if not self.directory.available_deps(self.deps):
+            return
         new_queue = []
         for key, data in self.set_queue:
             res = self.set_handler(key, data)

I'll have it on my new PR I'm currently working.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd suggest to close your PR and merge #4027

OK, thanks!

@pavel-shirshov
Copy link
Contributor

I'd suggest to close your PR and merge #4027

@tylerlinp tylerlinp closed this Jan 16, 2020
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.

2 participants