-
Notifications
You must be signed in to change notification settings - Fork 738
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
Handle RJ45 port when checking presence #5927
Conversation
a9f2cbc
to
1926ec6
Compare
- Expose 'type' to show_interfaces - Handle expected presence status differently between 'RJ45' and normal ports Signed-off-by: Stephen Sun <stephens@nvidia.com>
Signed-off-by: Stephen Sun <stephens@nvidia.com>
1926ec6
to
efc318b
Compare
Hi |
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
@sujinmkang would you please help to review? |
@prgeor kindly reminder to review and signoff. this is needed for complete support of rj45 in 202205. |
@stephenxs can you add more details to the PRs? The PR tempalate is empty:-
|
@prgeor Done. |
* Handle RJ45 port when checking presence - Expose 'type' to show_interfaces - Handle expected presence status differently between 'RJ45' and normal ports Signed-off-by: Stephen Sun <stephens@nvidia.com> * Leverage module "interface" to calculate number of RJ45 ports Signed-off-by: Stephen Sun <stephens@nvidia.com> Signed-off-by: Stephen Sun <stephens@nvidia.com>
* Handle RJ45 port when checking presence - Expose 'type' to show_interfaces - Handle expected presence status differently between 'RJ45' and normal ports Signed-off-by: Stephen Sun <stephens@nvidia.com> * Leverage module "interface" to calculate number of RJ45 ports Signed-off-by: Stephen Sun <stephens@nvidia.com> Signed-off-by: Stephen Sun <stephens@nvidia.com>
Description of PR
Summary:
Signed-off-by: Stephen Sun stephens@nvidia.com
Type of change
Back port request
Approach
What is the motivation for this PR?
Expose
type
of a port toshow_interfaces
, which enables other modules to leveragetype
to implement certain functionalities. Eg. In platform API test, the number ofRJ45
ports can be calculated via counting the ports whose type isRJ45
.How did you do it?
Parse the output of
show interface status
and extracttype
field and then push it into the dict.Do not try parsing it if the output is in the old format.
How did you verify/test it?
Manually test and regression test.
Any platform specific information?
N/A
Supported testbed topology if it's a new test case?
N/A
Documentation