We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7032017 commit b5b188fCopy full SHA for b5b188f
src/sonic-bgpcfgd/bgpmon/bgpmon.py
@@ -86,6 +86,9 @@ def get_all_neigh_states(self):
86
if rc:
87
syslog.syslog(syslog.LOG_ERR, "*ERROR* Failed with rc:{} when execute: {}".format(rc, cmd))
88
return
89
+ if len(output) == 0:
90
+ syslog.syslog(syslog.LOG_WARNING, "*WARNING* output none when execute: {}".format(cmd))
91
+ return
92
93
peer_info = json.loads(output)
94
# cmd ran successfully, safe to Clean the "new" set/dict for new snapshot
0 commit comments