diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-08-21 16:32:16 +0000 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-08-22 16:10:41 +0000 |
commit | e7d1805e4a774b97c176d3cc1184e1645580589e (patch) | |
tree | 1d44cda096d9fe239eccb5a9da2d591cc46c5d56 /src | |
parent | 0272bc92e70ae0e69cdd54f66a89921e2a98421c (diff) | |
download | vyos-1x-e7d1805e4a774b97c176d3cc1184e1645580589e.tar.gz vyos-1x-e7d1805e4a774b97c176d3cc1184e1645580589e.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)
# Conflicts:
# smoketest/scripts/cli/test_system_option.py
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/system_option.py | 2 |
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'] |