Skip to content

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

Closed
tylerlinp wants to merge 1 commit intosonic-net:masterfrom
tylerlinp:bgpcfgd
Closed

[bgpcfgd] bgp peer is not added successfully sometimes#4014
tylerlinp wants to merge 1 commit intosonic-net:masterfrom
tylerlinp:bgpcfgd

Conversation

@tylerlinp
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

retest vs please


def set_handler(self, key, data):
if not self.directory.path_exist("meta", "localhost/bgp_asn"):
return False
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

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

@tylerlinp tylerlinp closed this Jan 16, 2020
mssonicbld added a commit that referenced this pull request Aug 11, 2025
…atically (#23592)

#### Why I did it
src/sonic-utilities
```
* 63544291 - (HEAD -> 202505, origin/202505) Revert "[SPM] Rename the variable tag to docker-image-reference" (#4026) (2 days ago) [mssonicbld]
* 3a849b64 - Added json support intfutil (#4023) (3 days ago) [mssonicbld]
* 562fab54 - sfputil and sfpshow eeprom and DOM CLI enhancement to display data for all CMIS transceivers (#4017) (5 days ago) [mssonicbld]
* c1cb1488 - [sfputil] Use host lane mask as part of rx-output enable/disable (#4018) (5 days ago) [mssonicbld]
* 95fd12bc - [Mellanox][Smartswitch]Added dpu status output (#4014) (6 days ago) [mssonicbld]
* 070aae09 - Fix for #23205 [Smartswitch] Issues caused due to introduction of the chassisd/sonic-utiltiies changes for consecutive admin state changes (#4015) (6 days ago) [mssonicbld]
* f2e9ed47 - [SPM] Rename the variable tag to docker-image-reference (#4011) (7 days ago) [mssonicbld]
```
#### How I did it
#### How to verify it
#### Description for the changelog
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