Page MenuHomeVyOS Platform

Auto completion for op command show file is broken
Closed, ResolvedPublic

Description

Auto completion for op command show file is broken.
When pressing tab for auto completion, an error Invalid command: [_vyatta_image_file_complete] is returned because legacy Vyatta interpreter file vyatta-image-complete has been removed.

Details

Version
2025.10.07-0019-rolling, 1.5.0, 1.5.1
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

c-po changed the task status from Open to Confirmed.Oct 8 2025, 7:00 PM
c-po raised the priority of this task from Low to Normal.
c-po updated the task description. (Show Details)
c-po changed Version from rolling to 2025.10.07-0019-rolling.
c-po updated the task description. (Show Details)
c-po subscribed.

Confirmed:

vyos@vyos:~$ copy file
  Invalid command: [_vyatta_image_file_complete]

Possible completions:
  file                  Copy a file or a directory

VyOS 1.4.3 contains

vyos@vyos:~$ dpkg -S /opt/vyatta/share/vyatta-op/functions/interpreter/vyatta-image-complete
vyatta-op: /opt/vyatta/share/vyatta-op/functions/interpreter/vyatta-image-complete

File is missing in both current and 1.5-stream-202509280454

Some background: the scripts in question relate to the vyatta-image-tools.pl (not the image installer) and related scripts, cf. https://vyos.dev/T4038, for changes present in current but not 1.4.
On the other hand, the package vyatta-op was deprecated for versions > 1.4 in https://vyos.dev/T6527, and the file vyatta-image-complete was not included in vyos-1x: it would appear that the work above was to have provided a replacement, but that needs to be checked.
This will need a bit of analysis before a PR, but either we include the legacy script, or correct the errors in the possible replacement.

c-po changed Version from 2025.10.07-0019-rolling to 2025.10.07-0019-rolling, 1.5.0, 1.5.1.Aug 10 2026, 6:59 PM
Viacheslav moved this task from Backlog - Bug to Completed on the VyOS Rolling board.