[bgpcfgd]: Fix bgpcfgd. Don't notify before all deps are ready. (#4027)
* Fix bgpcfgd error. Previously subscribers were notified before all dependencies were ready
This commit is contained in:
parent
e7b75b0091
commit
9618c80127
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user