1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 02:01:16 +00:00

fw/SSHConnection: Deprecated parameters for Parimiko implementation

Deprecate parameters for the new implementation of the SSHConnection
based on Parimiko.
This commit is contained in:
Marc Bonnici 2020-01-30 19:02:03 +00:00
parent d0f099700a
commit 62ca7c0c36
2 changed files with 23 additions and 15 deletions

View File

@ -314,7 +314,7 @@ class ConfigurationPoint(object):
def validate(self, obj, check_mandatory=True): def validate(self, obj, check_mandatory=True):
value = getattr(obj, self.name, None) value = getattr(obj, self.name, None)
if self.deprecated: if self.deprecated:
msg = 'Depreciated parameter supplied for "{}" in "{}". Config will be ignored.' msg = 'Depreciated parameter supplied for "{}" in "{}". The value will be ignored.'
logger.warning(msg.format(self.name, obj.name)) logger.warning(msg.format(self.name, obj.name))
return return
if value is not None: if value is not None:

View File

@ -332,21 +332,10 @@ CONNECTION_PARAMS = {
The port SSH server is listening on on the target. The port SSH server is listening on on the target.
"""), """),
Parameter( Parameter(
'telnet', kind=bool, default=False, 'strict_host_check', kind=bool, default=True,
description=""" description="""
If set to ``True``, a Telnet connection, rather than Specify whether devices should be connected to if
SSH will be used. their host key does not match the systems known host keys. """),
"""),
Parameter(
'password_prompt', kind=str,
description="""
Password prompt to expect
"""),
Parameter(
'original_prompt', kind=str,
description="""
Original shell prompt to expect.
"""),
Parameter( Parameter(
'sudo_cmd', kind=str, 'sudo_cmd', kind=str,
default="sudo -- sh -c {}", default="sudo -- sh -c {}",
@ -355,6 +344,25 @@ CONNECTION_PARAMS = {
somewhere in the string it indicate where the command somewhere in the string it indicate where the command
to be run via sudo is to go. to be run via sudo is to go.
"""), """),
# Depreciated Parameters
Parameter(
'telnet', kind=str,
description="""
Original shell prompt to expect.
""",
deprecated=True),
Parameter(
'password_prompt', kind=str,
description="""
Password prompt to expect
""",
deprecated=True),
Parameter(
'original_prompt', kind=str,
description="""
Original shell prompt to expect.
""",
deprecated=True),
], ],
Gem5Connection: [ Gem5Connection: [
Parameter( Parameter(