From 05d61b5ed545819ca8447733b54db727a3717be1 Mon Sep 17 00:00:00 2001 From: pavel-shirshov Date: Fri, 17 Jan 2020 14:04:14 -0800 Subject: [PATCH] [bgpcfgd]: Fix bgpcfgd. Don't notify before all deps are ready. (#4027) * Fix bgpcfgd error. Previously subscribers were notified before all dependencies were ready --- dockers/docker-fpm-frr/bgpcfgd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dockers/docker-fpm-frr/bgpcfgd b/dockers/docker-fpm-frr/bgpcfgd index 4211f49d22..972c85ee27 100755 --- a/dockers/docker-fpm-frr/bgpcfgd +++ b/dockers/docker-fpm-frr/bgpcfgd @@ -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)