From 2557b08df6abfe8f162eff7fb405b57121b725c0 Mon Sep 17 00:00:00 2001 From: Tyler Li Date: Sun, 12 Jan 2020 22:39:44 -0800 Subject: [PATCH] [bgpcfgd] bgp peer is not added successfully sometimes --- 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 4211f49d2272..0e727ed6833c 100755 --- a/dockers/docker-fpm-frr/bgpcfgd +++ b/dockers/docker-fpm-frr/bgpcfgd @@ -283,6 +283,8 @@ class BGPPeerMgr(Manager): } def set_handler(self, key, data): + if not self.directory.path_exist("meta", "localhost/bgp_asn"): + return False key = self.normalize_key(key) vrf, nbr = key.split('|', 1) if key not in self.peers: