summaryrefslogtreecommitdiff
path: root/ospfclient/ospfclient.py
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-10-23 18:53:37 +0300
committerGitHub <noreply@github.com>2022-10-23 18:53:37 +0300
commit9f4b1cccbfb07369d2d1db7f554c662cdc246e8b (patch)
treec00c3cd3a68c7a75a500a942912080772b865299 /ospfclient/ospfclient.py
parentda7b460cd7b9eceda9058f49adc0200324c3a129 (diff)
parented518a5e534663d872f43d3c691cf296481fa3dc (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-xospfclient/ospfclient.py6
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)