diff options
author | Christian Poessinger <christian@poessinger.com> | 2023-01-04 19:58:59 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2023-01-08 08:55:38 +0100 |
commit | c0745d64024a498377dd02f2fc1ef0366473e97c (patch) | |
tree | f8279a2e895384d3a7eded123d94c7988c6981b3 /src | |
parent | 87b45f69913b7687433fb214fc97064fccd7214b (diff) | |
download | vyos-1x-c0745d64024a498377dd02f2fc1ef0366473e97c.tar.gz vyos-1x-c0745d64024a498377dd02f2fc1ef0366473e97c.zip |
ssh: T4922: add source-interface support ssh-client
(cherry picked from commit 87cc636bd2baf576a2a5ece7a4f8318eb4f69c2e)
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/system-option.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/conf_mode/system-option.py b/src/conf_mode/system-option.py index 2949bcfa9..fcdaa9676 100755 --- a/src/conf_mode/system-option.py +++ b/src/conf_mode/system-option.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# Copyright (C) 2019-2020 VyOS maintainers and contributors +# Copyright (C) 2019-2022 VyOS maintainers and contributors # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 or later as @@ -22,6 +22,7 @@ from time import sleep from vyos.config import Config from vyos.configdict import dict_merge +from vyos.configverify import verify_source_interface from vyos.template import render from vyos.util import cmd from vyos.validate import is_addr_assigned @@ -69,6 +70,8 @@ def verify(options): if 'source_address' in config: if not is_addr_assigned(config['source_address']): raise ConfigError('No interface with give address specified!') + if 'source_interface' in config: + verify_source_interface(config) return None |