Skip to content

Commit

Permalink
[bgpcfgd]: Fix bgpcfgd. Don't notify before all deps are ready. (#4027)
Browse files Browse the repository at this point in the history
* Fix bgpcfgd error. Previously subscribers were notified before all dependencies were ready
  • Loading branch information
pavel-shirshov authored and abdosi committed Jan 21, 2020
1 parent e7b75b0 commit 9618c80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dockers/docker-fpm-frr/bgpcfgd
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ class Manager(object):
syslog.syslog(syslog.LOG_ERR, 'Invalid operation "%s" for key "%s"' % (op, key))

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)
Expand Down

0 comments on commit 9618c80

Please sign in to comment.