summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-08-21 16:32:16 +0000
committerChristian Breunig <christian@breunig.cc>2024-08-23 21:01:02 +0200
commit2947e7f2a5a48af5cb85e440fe5ef83c0e0b498a (patch)
tree9589a6fb6f9a90d412e864cb436ea595d3ae4bb3 /src
parent94908b75bbce9eb2d867e8347901ae23ca6d5b4e (diff)
downloadvyos-1x-2947e7f2a5a48af5cb85e440fe5ef83c0e0b498a.tar.gz
vyos-1x-2947e7f2a5a48af5cb85e440fe5ef83c0e0b498a.zip
T6672: Fix system option ssh-client source-interface
Fix for system option ssh-client source-interface For the `verify_source_interface` the key `ifname` if required (cherry picked from commit f453b33a6056de8fc5145ca9e680361fbce68348)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/system_option.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/system_option.py b/src/conf_mode/system_option.py
index d1647e3a1..52d0b7cda 100755
--- a/src/conf_mode/system_option.py
+++ b/src/conf_mode/system_option.py
@@ -85,6 +85,8 @@ def verify(options):
raise ConfigError('No interface with address "{address}" configured!')
if 'source_interface' in config:
+ # verify_source_interface reuires key 'ifname'
+ config['ifname'] = config['source_interface']
verify_source_interface(config)
if 'source_address' in config:
address = config['source_address']