Skip to content

fix the get_auto_negotiation_mode#7267

Merged
arlakshm merged 1 commit intosonic-net:masterfrom
arlakshm:arlakshm/github/fix_7266
Jan 19, 2023
Merged

fix the get_auto_negotiation_mode#7267
arlakshm merged 1 commit intosonic-net:masterfrom
arlakshm:arlakshm/github/fix_7266

Conversation

@arlakshm
Copy link
Copy Markdown
Contributor

Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan arlakshm@microsoft.com

Description of PR

Summary:
Fixes #7266

Type of change

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

Back port request

  • 201911
  • 202012
  • [x ] 202205

Approach

What is the motivation for this PR?

In some eos fanout switches the show interface status <portname> json is not supported. This causes error in test_update_testbed_metadata

How did you do it?

in get_auto_negotiation_mode return None instead of raising a error

How did you verify/test it?

Run pretest in t2 testbed

Any platform specific information?

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

Documentation

Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
@abdosi
Copy link
Copy Markdown
Contributor

abdosi commented Jan 17, 2023

LGTM.. however what is the best way to get auto-neg capability for eos that does not support json o/p ?

@arlakshm
Copy link
Copy Markdown
Contributor Author

LGTM.. however what is the best way to get auto-neg capability for eos that does not support json o/p ?
I think we need to investigate more on that one.

@antonptashnik
Copy link
Copy Markdown
Contributor

@arlakshm the original command test use to retrieve autoneg state is show int eth 1/1 status | json. If it does not work in EOS version you have, please try to add an alternative way using the command 'show interfaces ethernet <int_name> negotiation'. My output is below:

fanout#show interfaces ethernet 1/1 negotiation
Port        Autoneg               Negotiated Settings
            Status   Speed  Lanes  Duplex  Rx Pause  Tx Pause  FEC
----------  -------  -----  -----  ------  --------  --------  ----
Et1/1       off      -      -      -       -         -         -

@arlakshm arlakshm merged commit d1ad7a9 into sonic-net:master Jan 19, 2023
wangxin pushed a commit that referenced this pull request Jan 30, 2023
Description of PR
Summary:
Fixes #7266

Type of change
[ x] Bug fix
 Testbed and Framework(new/improvement)
 Test case(new/improvement)
Back port request
 201911
 202012
[x ] 202205
Approach
What is the motivation for this PR?
In some eos fanout switches the show interface status <portname> json is not supported. This causes error in test_update_testbed_metadata

How did you do it?
in get_auto_negotiation_mode return None instead of raising a error

How did you verify/test it?
Run pretest in t2 testbed

Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@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.

[chassis] test_update_testbed_metadata failing on some testbeds

4 participants