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

Modified iface_namingmode testcases to get internal ports on voq system #3757

Closed
wants to merge 1 commit into from

Conversation

oxygen980
Copy link
Contributor

Description of PR

Modified iface_namingmode testcases to get internal interfaces.

Summary:
Fixes # (issue)
The script was missing internal interfaces and some testcases were failing.

Type of change

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

Back port request

  • 201911

Approach

What is the motivation for this PR?

Testcases were missing check on internal interfaces

How did you do it?

Modified testcases to get internal ports.

How did you verify/test it?

verified on VOQ system.

Any platform specific information?

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

Documentation

@oxygen980 oxygen980 requested a review from a team as a code owner July 9, 2021 04:09
@anshuv-mfst anshuv-mfst requested a review from a team August 11, 2021 16:57
@@ -37,7 +37,7 @@ def setup(duthosts, enum_rand_one_per_hwsku_frontend_hostname, tbinfo):

hwsku = duthost.facts['hwsku']
minigraph_facts = duthost.get_extended_minigraph_facts(tbinfo)
port_alias_facts = duthost.port_alias(hwsku=hwsku, include_internal=False)['ansible_facts']
port_alias_facts = duthost.port_alias(hwsku=hwsku, include_internal=True)['ansible_facts']
Copy link
Contributor

Choose a reason for hiding this comment

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

What internal ports will be included? Inband ports? Also the change is not only for voq system, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ysmanman Yes this is for inband ports and the changes will take care of all type of DUT.

Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need this change ? The port alias is not needed for inband ports I think we can ignore them.
The port alias is mainly needed for front panel ports.

pfc_rx = dutHostGuest.shell('SONIC_CLI_IFACE_MODE={} sudo show pfc counters | sed -n "/Port Rx/,/^$/p"'.format(ifmode))['stdout']
pfc_tx = dutHostGuest.shell('SONIC_CLI_IFACE_MODE={} sudo show pfc counters | sed -n "/Port Tx/,/^$/p"'.format(ifmode))['stdout']
pfc_rx = dutHostGuest.shell('SONIC_CLI_IFACE_MODE={} sudo show pfc counters -d all | sed -n "/Port Rx/,/^$/p"'.format(ifmode))['stdout']
pfc_tx = dutHostGuest.shell('SONIC_CLI_IFACE_MODE={} sudo show pfc counters -d all | sed -n "/Port Tx/,/^$/p"'.format(ifmode))['stdout']
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this -d all option supported on release earlier than 202012?

Copy link
Contributor

Choose a reason for hiding this comment

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

'-d' option came in with multi-asic support. If 202012 supports multi-asic, then it should have the '-d' option

Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need this change ?

Copy link
Contributor

@arlakshm arlakshm left a comment

Choose a reason for hiding this comment

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

as comments

@@ -37,7 +37,7 @@ def setup(duthosts, enum_rand_one_per_hwsku_frontend_hostname, tbinfo):

hwsku = duthost.facts['hwsku']
minigraph_facts = duthost.get_extended_minigraph_facts(tbinfo)
port_alias_facts = duthost.port_alias(hwsku=hwsku, include_internal=False)['ansible_facts']
port_alias_facts = duthost.port_alias(hwsku=hwsku, include_internal=True)['ansible_facts']
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need this change ? The port alias is not needed for inband ports I think we can ignore them.
The port alias is mainly needed for front panel ports.

pfc_rx = dutHostGuest.shell('SONIC_CLI_IFACE_MODE={} sudo show pfc counters | sed -n "/Port Rx/,/^$/p"'.format(ifmode))['stdout']
pfc_tx = dutHostGuest.shell('SONIC_CLI_IFACE_MODE={} sudo show pfc counters | sed -n "/Port Tx/,/^$/p"'.format(ifmode))['stdout']
pfc_rx = dutHostGuest.shell('SONIC_CLI_IFACE_MODE={} sudo show pfc counters -d all | sed -n "/Port Rx/,/^$/p"'.format(ifmode))['stdout']
pfc_tx = dutHostGuest.shell('SONIC_CLI_IFACE_MODE={} sudo show pfc counters -d all | sed -n "/Port Tx/,/^$/p"'.format(ifmode))['stdout']
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need this change ?

harish-kalyanaraman pushed a commit to harish-kalyanaraman/sonic-mgmt that referenced this pull request Nov 18, 2021
@oxygen980 oxygen980 closed this Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants