Skip to content

[202511] add authtype for consoleserver (#22679)#22974

Merged
vmittal-msft merged 1 commit intosonic-net:202511from
sdszhang:cherry-pick/22679-console-authtype
Mar 17, 2026
Merged

[202511] add authtype for consoleserver (#22679)#22974
vmittal-msft merged 1 commit intosonic-net:202511from
sdszhang:cherry-pick/22679-console-authtype

Conversation

@sdszhang
Copy link
Copy Markdown
Contributor

Description of PR

Cherry-pick of #22679 to 202511 branch.

Summary:
support specifying authentication credential choice for console server (e.g. TACACS or AAD),

With the following device:

Hostname,ManagementIp,HwSku,Type,Protocol,Os,AuthType
console-1,192.168.10.1/23,Cisco,ConsoleServer,ssh,sonic,,
console-2,192.168.10.2/23,Cisco,ConsoleServer,ssh,sonic,,tacacs

console-1 will use the default credentials in secrets.yaml "console_login".
console-2 will use more specific credentials in secrets.yaml "console_login_options['tacacs']"

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
  • Test case improvement

Approach

What is the motivation for this PR?

user can use different credential for console server.

How did you do it?

introduced new console_type, CONSOLE_SSH_TACACS

How did you verify/test it?

Verified locally.

Conflict resolution

Resolved conflict in tests/common/helpers/dut_utils.py - kept 202511 branch's console_menu_type handling and added update_console_creds call.

Summary:
support specifying authentication credential choice for console server (e.g. TACACS or AAD),

With the following device:

Hostname,ManagementIp,HwSku,Type,Protocol,Os,AuthType
console-1,192.168.10.1/23,Cisco,ConsoleServer,ssh,sonic,,
console-2,192.168.10.2/23,Cisco,ConsoleServer,ssh,sonic,,tacacs
console-1 will use the default credentials in secrets.yaml "console_login".
console-2 will use more specific credentials in secrets.yaml "console_login_options['tacacs']"

What is the motivation for this PR?
user can use different credential for console server.

How did you do it?
introduced new console_type, CONSOLE_SSH_TACACS

How did you verify/test it?
Verified locally.

Signed-off-by: Dashuai Zhang <dashuaizhang@microsoft.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@wsycqyz
Copy link
Copy Markdown
Contributor

wsycqyz commented Mar 16, 2026

re-trigger the pipeline for pr test

@vmittal-msft vmittal-msft merged commit 259976c into sonic-net:202511 Mar 17, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants