Skip to content

[test_iface_namingmode] Adapt to show interfaces status fec column#2074

Closed
lolyu wants to merge 1 commit intosonic-net:masterfrom
lolyu:fix_test_show_interfaces_status
Closed

[test_iface_namingmode] Adapt to show interfaces status fec column#2074
lolyu wants to merge 1 commit intosonic-net:masterfrom
lolyu:fix_test_show_interfaces_status

Conversation

@lolyu
Copy link
Copy Markdown
Collaborator

@lolyu lolyu commented Aug 10, 2020

Description of PR

Summary:
Fixes # (issue)
Adapt to show interfaces status fec column

Signed-off-by: Longxiang Lyu lolv@microsoft.com

Type of change

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

Approach

What is the motivation for this PR?

test_iface_namingmode failed due to the new fec in show interfaces status

How did you do it?

How did you verify/test it?

Any platform specific information?

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

Documentation

@lolyu lolyu force-pushed the fix_test_show_interfaces_status branch 3 times, most recently from 9f27416 to b8e3a95 Compare August 10, 2020 09:35
@lolyu lolyu marked this pull request as ready for review August 10, 2020 09:36
@lolyu lolyu requested a review from a team August 10, 2020 09:37
Comment thread tests/iface_namingmode/test_iface_namingmode.py Outdated
@lolyu lolyu force-pushed the fix_test_show_interfaces_status branch from b8e3a95 to 69e44d6 Compare August 11, 2020 05:15
1. Modify `show_interface` module to support `SONIC_CLI_IFACE_MODE`
2. Modify `test_show_interfaces_status` to use `show_interface` to be
compatible with the introduction of `fec`.

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
@lolyu lolyu force-pushed the fix_test_show_interfaces_status branch from 69e44d6 to 1c36730 Compare August 11, 2020 06:40
@wangxin
Copy link
Copy Markdown
Collaborator

wangxin commented Aug 11, 2020

Will this enhancement #2080 be helpful for the problem addressed by this PR?

@lolyu
Copy link
Copy Markdown
Collaborator Author

lolyu commented Aug 11, 2020

Will this enhancement #2080 be helpful for the problem addressed by this PR?

No, there is an extra requirement to run show interfaces status with env variable SONIC_CLI_IFACE_MODE.

name = regex_int.match(line).group(1)
alias = regex_int.match(line).group(4)
intf_status = dutHostGuest.show_interface(command="status",
interfaces=(test_intf,),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should be a list

@yxieca
Copy link
Copy Markdown
Collaborator

yxieca commented Aug 11, 2020

#2004 address the regex issue already. But I think Neetha's suggestion is great. we should move to use show_inteface libraray.

@lolyu
Copy link
Copy Markdown
Collaborator Author

lolyu commented Aug 12, 2020

#2004 address the regex issue already. But I think Neetha's suggestion is great. we should move to use show_inteface libraray.

I see, thanks for the notice.

@lolyu lolyu closed this Aug 12, 2020
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
Includes below commits
```
38b616ba 2021-12-09 | [LGTM] lgtm to use 202106 branches of swss-common and sairedis (sonic-net#2074) [Stephen Sun]
c68bad07 2021-12-07 | Fix random failure in PR/CI build. sonic-net#2006 [Shilong Liu]
ba17675b 2021-08-23 | [ci]: fix artifacts download from swss-common and sairedis (sonic-net#1882) [Guohan Lu]
```
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.

4 participants