[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
64500e143b
commit
05d61b5ed5
@ -203,6 +203,8 @@ class Manager(object):
|
|||||||
syslog.syslog(syslog.LOG_ERR, 'Invalid operation "%s" for key "%s"' % (op, key))
|
syslog.syslog(syslog.LOG_ERR, 'Invalid operation "%s" for key "%s"' % (op, key))
|
||||||
|
|
||||||
def on_deps_change(self):
|
def on_deps_change(self):
|
||||||
|
if not self.directory.available_deps(self.deps):
|
||||||
|
return
|
||||||
new_queue = []
|
new_queue = []
|
||||||
for key, data in self.set_queue:
|
for key, data in self.set_queue:
|
||||||
res = self.set_handler(key, data)
|
res = self.set_handler(key, data)
|
||||||
|
Loading…
Reference in New Issue
Block a user