diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-10-23 18:53:37 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-23 18:53:37 +0300 |
| commit | 9f4b1cccbfb07369d2d1db7f554c662cdc246e8b (patch) | |
| tree | c00c3cd3a68c7a75a500a942912080772b865299 /ospfclient/ospfclient.py | |
| parent | da7b460cd7b9eceda9058f49adc0200324c3a129 (diff) | |
| parent | ed518a5e534663d872f43d3c691cf296481fa3dc (diff) | |
Merge pull request #12175 from FRRouting/mergify/bp/dev/8.4/pr-12155
OSPF: allow for zero length opaque LSAs (backport #12155)
Diffstat (limited to 'ospfclient/ospfclient.py')
| -rwxr-xr-x | ospfclient/ospfclient.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ospfclient/ospfclient.py b/ospfclient/ospfclient.py index c7cfc88b9c..19561145a0 100755 --- a/ospfclient/ospfclient.py +++ b/ospfclient/ospfclient.py @@ -1099,6 +1099,12 @@ async def async_main(args): for action in args.actions: _s = action.split(",") what = _s.pop(False) + if what.casefold() == "wait": + stime = int(_s.pop(False)) + logging.info("waiting %s seconds", stime) + await asyncio.sleep(stime) + logging.info("wait complete: %s seconds", stime) + continue ltype = int(_s.pop(False)) if ltype == 11: addr = ip(0) |
