Ensure that the zserv.api socket is actually up and running
before moving onto other daemons after zebra.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit
009f42dd5bd02eb5ee0bd9852704357c6bc7aaa1)
)
else:
binary = os.path.join(self.daemondir, daemon)
- check_daemon_files.extend([runbase + ".pid", runbase + ".vty"])
+ if daemon == "zebra":
+ zapi_base = "/var/run/{}/zserv.api".format(self.routertype)
+ check_daemon_files.extend(
+ [runbase + ".pid", runbase + ".vty", zapi_base]
+ )
+ else:
+ check_daemon_files.extend([runbase + ".pid", runbase + ".vty"])
cmdenv = "ASAN_OPTIONS="
if asan_abort: