Page MenuHomeVyOS Platform

ssh-client source-interface CLI option failing with traceback
Closed, ResolvedPublicBUG

Description

When adding the ssh-client using the source-interface, traceback error received:

vyos@vyos# set system option ssh-client source-interface eth1
[edit]
vyos@vyos# commit
[ system option ]
VyOS had an issue completing a command.

We are sorry that you encountered a problem while using VyOS.
There are a few things you can do to help us (and yourself):
- Contact us using the online help desk if you have a subscription:
  https://support.vyos.io/
- Make sure you are running the latest version of VyOS available at:
  https://vyos.net/get/
- Consult the community forum to see how to handle this issue:
  https://forum.vyos.io
- Join us on Slack where our users exchange help and advice:
  https://vyos.slack.com

When reporting problems, please include as much information as possible:
- do not obfuscate any data (feel free to contact us privately if your
  business policy requires it)
- and include all the information presented below

Report time:      2024-08-21 15:18:16
Image version:    VyOS 1.5-rolling-202408200022
Release train:    current

Built by:         autobuild@vyos.net
Built on:         Tue 20 Aug 2024 00:22 UTC
Build UUID:       2fb9321a-20ec-4a1a-8633-b449dcfd0e69
Build commit ID:  c75174bb4a2230

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest

Hardware vendor:  QEMU
Hardware model:   Standard PC (i440FX + PIIX, 1996)
Hardware S/N:
Hardware UUID:    3f566e62-2ce2-4641-bada-14c4c47e9c40

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/system_option.py", line 190, in <module>
    verify(c)
  File "/usr/libexec/vyos/conf_mode/system_option.py", line 88, in verify
    verify_source_interface(config)
  File "/usr/lib/python3/dist-packages/vyos/configverify.py", line 276, in verify_source_interface
    ifname = config['ifname']
             ~~~~~~^^^^^^^^^^
KeyError: 'ifname'



[[system option]] failed
Commit failed

Received the same error in VyOS 1.4.0 version.

Details

Version
1.5-rolling-202408200022, 1.4.0
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)
Forum thread
https://forum.vyos.io/t/1-5-system-options-ssh-client-source-interface-traceback/15112

Event Timeline

Viacheslav triaged this task as Normal priority.Aug 21 2024, 3:27 PM
Viacheslav moved this task from Open to Finished on the VyOS 1.5 Circinus board.
Viacheslav moved this task from Backlog to Finished on the VyOS 1.4 Sagitta (1.4.1) board.