diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-12 10:10:01 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-11-12 10:10:01 +0100 |
commit | c0de93d37354ec89f44dde7f1b5a4c8af550a019 (patch) | |
tree | 90e351393e0a1fd0e732d353ce8de9c3cb6d88c4 /src/op_mode/mtr.py | |
parent | b8e9daf12eaef46747e7379042f8acd575e5b1d6 (diff) | |
download | vyos-1x-c0de93d37354ec89f44dde7f1b5a4c8af550a019.tar.gz vyos-1x-c0de93d37354ec89f44dde7f1b5a4c8af550a019.zip |
op-mode: T5658: fix "monitor traceroute" completion helper
Diffstat (limited to 'src/op_mode/mtr.py')
-rw-r--r-- | src/op_mode/mtr.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/op_mode/mtr.py b/src/op_mode/mtr.py index efb627e51..de139f2fa 100644 --- a/src/op_mode/mtr.py +++ b/src/op_mode/mtr.py @@ -242,8 +242,11 @@ if __name__ == '__main__': if not host: sys.exit("mtr: Missing host") - if host == '--get-options': - args.first() # pop ping + + if host == '--get-options' or host == '--get-options-nested': + if host == '--get-options-nested': + args.first() # pop monitor + args.first() # pop mtr | traceroute args.first() # pop IP usedoptionslist = [] while args: |