Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update console connection tool #2829

Merged
merged 4 commits into from
Mar 1, 2021

Conversation

bingwang-ms
Copy link
Collaborator

Signed-off-by: bingwang [email protected]

Description of PR

Summary:
This PR updates console connection tool

  1. Refactor code.
    Move most code from __init__.py to console_host.py
  2. Support interactive shell
    Add a new interactice posix_shell for devutils

Type of change

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

Approach

What is the motivation for this PR?

This PR is to update console connection tool.

How did you do it?

Please see Summary.

How did you verify/test it?

Verified on various console servers.

Any platform specific information?

No.

Supported testbed topology if it's a new test case?

No.

Documentation

1. Refactor code
2. Support interactive_shell

Signed-off-by: bingwang <[email protected]>
@bingwang-ms bingwang-ms force-pushed the update_console_connection branch from d00b4a9 to fca2f03 Compare January 17, 2021 10:28
@lgtm-com
Copy link

lgtm-com bot commented Jan 17, 2021

This pull request introduces 3 alerts when merging 3ef5fb2 into 65c3293 - view on LGTM.com

new alerts:

  • 3 for Explicit export is not defined

Signed-off-by: bingwang <[email protected]>
@@ -81,3 +89,30 @@ def cleanup(self):
def disconnect(self):
super(BaseConsoleConn, self).disconnect()

def posix_shell(self):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably can abstract this posix_shell() method out to a more generic class so that you can use it in your devutil change too?

Copy link
Collaborator

@yxieca yxieca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can refactor code in another PR.

@bingwang-ms bingwang-ms merged commit c12a893 into sonic-net:master Mar 1, 2021
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.

2 participants