summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-08-21 16:32:16 +0000
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-08-22 16:10:41 +0000
commite7d1805e4a774b97c176d3cc1184e1645580589e (patch)
tree1d44cda096d9fe239eccb5a9da2d591cc46c5d56 /src/conf_mode
parent0272bc92e70ae0e69cdd54f66a89921e2a98421c (diff)
downloadvyos-1x-e7d1805e4a774b97c176d3cc1184e1645580589e.tar.gz
vyos-1x-e7d1805e4a774b97c176d3cc1184e1645580589e.zip
T6672: Fix system option ssh-client source-interfacemergify/bp/circinus/pr-4000
Fix for system option ssh-client source-interface For the `verify_source_interface` the key `ifname` if required (cherry picked from commit f453b33a6056de8fc5145ca9e680361fbce68348) # Conflicts: # smoketest/scripts/cli/test_system_option.py
Diffstat (limited to 'src/conf_mode')
-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 6eb47e552..5b593335e 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']