mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 12:06:08 +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:
parent
d0f099700a
commit
62ca7c0c36
@ -314,7 +314,7 @@ class ConfigurationPoint(object):
|
||||
def validate(self, obj, check_mandatory=True):
|
||||
value = getattr(obj, self.name, None)
|
||||
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))
|
||||
return
|
||||
if value is not None:
|
||||
|
@ -332,21 +332,10 @@ CONNECTION_PARAMS = {
|
||||
The port SSH server is listening on on the target.
|
||||
"""),
|
||||
Parameter(
|
||||
'telnet', kind=bool, default=False,
|
||||
'strict_host_check', kind=bool, default=True,
|
||||
description="""
|
||||
If set to ``True``, a Telnet connection, rather than
|
||||
SSH will be used.
|
||||
"""),
|
||||
Parameter(
|
||||
'password_prompt', kind=str,
|
||||
description="""
|
||||
Password prompt to expect
|
||||
"""),
|
||||
Parameter(
|
||||
'original_prompt', kind=str,
|
||||
description="""
|
||||
Original shell prompt to expect.
|
||||
"""),
|
||||
Specify whether devices should be connected to if
|
||||
their host key does not match the systems known host keys. """),
|
||||
Parameter(
|
||||
'sudo_cmd', kind=str,
|
||||
default="sudo -- sh -c {}",
|
||||
@ -355,6 +344,25 @@ CONNECTION_PARAMS = {
|
||||
somewhere in the string it indicate where the command
|
||||
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: [
|
||||
Parameter(
|
||||
|
Loading…
x
Reference in New Issue
Block a user