Skip to content

art1f1c3R/36400654 base console conn bug fix#21966

Merged
auspham merged 2 commits intosonic-net:masterfrom
art1f1c3R:art1f1c3R/36400654-base-console-conn-bug-fix
Jan 20, 2026
Merged

art1f1c3R/36400654 base console conn bug fix#21966
auspham merged 2 commits intosonic-net:masterfrom
art1f1c3R:art1f1c3R/36400654-base-console-conn-bug-fix

Conversation

@art1f1c3R
Copy link
Copy Markdown
Contributor

@art1f1c3R art1f1c3R commented Jan 19, 2026

Description of PR

After investigating the error in Test plan 6968ad1915026fd4f746b408, it raises an error due to the BaseConsoleConn.find_prompt definition not having a pattern keyword argument. Since this function calls super, this has been changed to use **kwargs so all keyword arguments are accounted for.

Summary:
Attending to issues noticed in ADO 36400654.

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Approach

What is the motivation for this PR?

Test plan 6968ad1915026fd4f746b408 was failing due to a python exception, causing the testbed recovery to fail.

How did you do it?

Traced the exception to the BaseConsoleConn type and how it uses netmiko.cisco_base_connection.CiscoBaseConnection.

How did you verify/test it?

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented Jan 19, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>
@art1f1c3R art1f1c3R force-pushed the art1f1c3R/36400654-base-console-conn-bug-fix branch from fd5d085 to ce28a08 Compare January 19, 2026 03:40
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@art1f1c3R art1f1c3R changed the title Art1f1c3 r/36400654 base console conn bug fix art1f1c3R/36400654 base console conn bug fix Jan 19, 2026
@auspham auspham enabled auto-merge (squash) January 20, 2026 04:50
@auspham auspham merged commit d7b6c47 into sonic-net:master Jan 20, 2026
21 checks passed
PriyanshTratiya pushed a commit to PriyanshTratiya/sonic-mgmt that referenced this pull request Jan 21, 2026
* fix: added kwargs arg to console connection to align with netmiko

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

* explicitly add delay factor with kwargs

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

---------

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>
Signed-off-by: Priyansh Tratiya <ptratiya@microsoft.com>
saravanan-nexthop pushed a commit to nexthop-ai/sonic-mgmt that referenced this pull request Jan 22, 2026
* fix: added kwargs arg to console connection to align with netmiko

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

* explicitly add delay factor with kwargs

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

---------

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>
Signed-off-by: Saravanan Sellappa <saravanan@nexthop.ai>
justin-oliver pushed a commit to justin-oliver/sonic-mgmt that referenced this pull request Jan 26, 2026
* fix: added kwargs arg to console connection to align with netmiko

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

* explicitly add delay factor with kwargs

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

---------

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>
@nimicho
Copy link
Copy Markdown
Contributor

nimicho commented Jan 29, 2026

any plan to fix this on 2511? i made a similar PR there: #21987

@auspham auspham added the Request for 202511 branch Request to backport a change to 202511 branch label Jan 30, 2026
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jan 30, 2026
* fix: added kwargs arg to console connection to align with netmiko

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

* explicitly add delay factor with kwargs

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

---------

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202511: #22196

ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
* fix: added kwargs arg to console connection to align with netmiko

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

* explicitly add delay factor with kwargs

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

---------

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>
Signed-off-by: Yael Tzur <ytzur@nvidia.com>
vmittal-msft pushed a commit that referenced this pull request Feb 4, 2026
* fix: added kwargs arg to console connection to align with netmiko



* explicitly add delay factor with kwargs



---------

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>
Co-authored-by: Carl Flottmann <carlflottmann@gmail.com>
abhishek-nexthop pushed a commit to nexthop-ai/sonic-mgmt that referenced this pull request Feb 6, 2026
* fix: added kwargs arg to console connection to align with netmiko

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

* explicitly add delay factor with kwargs

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

---------

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>
Anirudh-nokia pushed a commit to Anirudh-nokia/sonic-mgmt-fork that referenced this pull request Feb 6, 2026
* fix: added kwargs arg to console connection to align with netmiko

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

* explicitly add delay factor with kwargs

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

---------

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>
Signed-off-by: ayya <anirudh.ayya@nokia.com>
lakshmi-nexthop pushed a commit to lakshmi-nexthop/sonic-mgmt that referenced this pull request Feb 11, 2026
* fix: added kwargs arg to console connection to align with netmiko

* explicitly add delay factor with kwargs

---------

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>
Co-authored-by: Carl Flottmann <carlflottmann@gmail.com>
Signed-off-by: Lakshmi Yarramaneni <lakshmi@nexthop.ai>
nnelluri-cisco pushed a commit to nnelluri-cisco/sonic-mgmt that referenced this pull request Feb 12, 2026
* fix: added kwargs arg to console connection to align with netmiko

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

* explicitly add delay factor with kwargs

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

---------

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>
Signed-off-by: nnelluri-cisco <nnelluri@cisco.com>
rraghav-cisco pushed a commit to rraghav-cisco/sonic-mgmt that referenced this pull request Feb 13, 2026
* fix: added kwargs arg to console connection to align with netmiko

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

* explicitly add delay factor with kwargs

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

---------

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>
Signed-off-by: Raghavendran Ramanathan <rraghav@cisco.com>
anilal-amd pushed a commit to anilal-amd/anilal-forked-sonic-mgmt that referenced this pull request Feb 19, 2026
* fix: added kwargs arg to console connection to align with netmiko

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

* explicitly add delay factor with kwargs

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

---------

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>
Signed-off-by: Zhuohui Tan <zhuohui.tan@amd.com>
abhishek-nexthop pushed a commit to nexthop-ai/sonic-mgmt that referenced this pull request Mar 17, 2026
* fix: added kwargs arg to console connection to align with netmiko

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

* explicitly add delay factor with kwargs

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

---------

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>
Signed-off-by: Abhishek <abhishek@nexthop.ai>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Mar 27, 2026
* fix: added kwargs arg to console connection to align with netmiko

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

* explicitly add delay factor with kwargs

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>

---------

Signed-off-by: Carl Flottmann <t-cflottmann@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants