diff options
| author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2022-10-20 09:19:45 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-20 09:19:45 -0500 |
| commit | 7c7db42f46c9dfc96e56a8d5d60667906bc1525e (patch) | |
| tree | 228b8d5c6a36c6988df06c995f148233e4c4571f /ospfclient/ospfclient.py | |
| parent | 4ca122525dd4b6df5e6c152059f4a1dbef1d6338 (diff) | |
| parent | 0b242b118fb8db6397d186f62d7f912abeb620ac (diff) | |
Merge pull request #12155 from LabNConsulting/working/lb/opaque-lsa-zero-len
OSPF: allow for zero length opaque LSAs
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) |
