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

[gNMI-1.11, RT-5.1/3] - add InterfaceCountersUpdateDelayed deviation for CISCO #2805

Merged
merged 21 commits into from
Oct 3, 2024

Conversation

kjahed
Copy link
Contributor

@kjahed kjahed commented Mar 13, 2024

CISCO interface counters telemetry does not reflect the latest value. This PR adds InterfaceCountersUpdateDelayed and modify gNMI-1.10, gNMI-1.11, RT-5.1, and RT-5.3 to wait until the counters are updated (for a max timeout) when activated.

In addition, for gNMI-1.10, modify verifyChassisIsAncestor to ignore ancestors with no type. This is similar to PR #2808 for gNMI-1.4.

@kjahed kjahed requested review from a team as code owners March 13, 2024 23:26
@kjahed kjahed requested a review from michaelore March 13, 2024 23:26
if typeGot != portType {
typeGotV := gnmi.Lookup(t, dut, gnmi.OC().Component(val).Type().State())
typeGot, present := typeGotV.Val()
if present && typeGot != portType {
Copy link
Contributor

Choose a reason for hiding this comment

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

This change was not included in the PR description / not part of the deviation, it appears

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. Reverted.

if got == chassisType {
gotV := gnmi.Lookup(t, dut, gnmi.OC().Component(val).Type().State())
got, present := gotV.Val()
if present && got == chassisType {
Copy link
Contributor

Choose a reason for hiding this comment

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

This change was not included in the PR description / not part of the deviation, it appears

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. Updated the PR description.

@coveralls
Copy link

coveralls commented Mar 14, 2024

Pull Request Test Coverage Report for Build 11155885763

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 55.268%

Totals Coverage Status
Change from base Build 11155053907: 0.0%
Covered Lines: 1983
Relevant Lines: 3588

💛 - Coveralls

@AmrNJ
Copy link
Contributor

AmrNJ commented Mar 25, 2024

@kjahed Please can you resolve the conflicts?

AmrNJ
AmrNJ previously approved these changes Jun 11, 2024
Copy link
Contributor

@AmrNJ AmrNJ left a comment

Choose a reason for hiding this comment

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

LGTM, Please resolve the conflicts to merge

@kjahed
Copy link
Contributor Author

kjahed commented Jun 12, 2024

LGTM, Please resolve the conflicts to merge

@AmrNJ done.

@AmrNJ AmrNJ self-assigned this Jun 26, 2024
@AmrNJ
Copy link
Contributor

AmrNJ commented Jun 27, 2024

@kjahed It still has conflicts and readme check fails. Please can you fix it?

@AmrNJ AmrNJ removed their assignment Jul 8, 2024
@arvbaska1
Copy link
Contributor

Merge conflicts are fixed, the Readme check fails due to some issue in test-requirements-template.md
https://github.com/openconfig/featureprofiles/actions/runs/10944362833/job/30386029201?pr=2805

Local check passes for this test
go run ./tools/validate_readme_spec/validate_readme_spec.go --feature-dir feature/interface/aggregate/otg_tests/balancing_test/README.md
%

@kjahed kjahed changed the title [gNMI-1.10/11, RT-5.1/3] - add InterfaceCountersUpdateDelayed deviation for CISCO [gNMI-11, RT-5.1/3] - add InterfaceCountersUpdateDelayed deviation for CISCO Sep 24, 2024
@kjahed kjahed changed the title [gNMI-11, RT-5.1/3] - add InterfaceCountersUpdateDelayed deviation for CISCO [gNMI-1.11, RT-5.1/3] - add InterfaceCountersUpdateDelayed deviation for CISCO Sep 24, 2024
Copy link
Contributor

@ram-mac ram-mac left a comment

Choose a reason for hiding this comment

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

LGTM

@ram-mac ram-mac merged commit 43e3890 into openconfig:main Oct 3, 2024
13 checks passed
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.

7 participants