summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-12 10:10:01 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-11-12 09:12:27 +0000
commit21e4fddeebe541856e25a398018854fb0cf6fbd9 (patch)
treee1c75cccb5619ceb3df72f059dc637106ef9e25c /src
parentcc1df006731050ca68bb1ea1619864f85cee9cdb (diff)
downloadvyos-1x-21e4fddeebe541856e25a398018854fb0cf6fbd9.tar.gz
vyos-1x-21e4fddeebe541856e25a398018854fb0cf6fbd9.zip
op-mode: T5658: fix "monitor traceroute" completion helper
(cherry picked from commit c0de93d37354ec89f44dde7f1b5a4c8af550a019)
Diffstat (limited to 'src')
-rw-r--r--src/op_mode/mtr.py7
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: