forked from Mirror/frr
ospfclient: add 'wait,<seconds>' action to ospfclient.py - for testing
Signed-off-by: Lou Berger <lberger@labn.net>
This commit is contained in:
parent
0b91fce78b
commit
20d26a9e08
|
@ -1099,6 +1099,12 @@ async def async_main(args):
|
||||||
for action in args.actions:
|
for action in args.actions:
|
||||||
_s = action.split(",")
|
_s = action.split(",")
|
||||||
what = _s.pop(False)
|
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))
|
ltype = int(_s.pop(False))
|
||||||
if ltype == 11:
|
if ltype == 11:
|
||||||
addr = ip(0)
|
addr = ip(0)
|
||||||
|
|
Loading…
Reference in a new issue