diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2025-03-07 18:39:33 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2025-03-07 18:43:18 -0500 |
| commit | 009f42dd5bd02eb5ee0bd9852704357c6bc7aaa1 (patch) | |
| tree | 9dc01b718dab3e4f7521ec384832ed18fbec3066 /tests/topotests/lib/topotest.py | |
| parent | dd609bc069857a38ff3577b76d0b9ef708b8d2aa (diff) | |
tests: Have zebra startup look for the zserv.api socket
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>
Diffstat (limited to 'tests/topotests/lib/topotest.py')
| -rw-r--r-- | tests/topotests/lib/topotest.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py index 301f245b17..07033698d0 100644 --- a/tests/topotests/lib/topotest.py +++ b/tests/topotests/lib/topotest.py @@ -1960,7 +1960,13 @@ class Router(Node): ) 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: |
