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

OTG Test - Gnmi-1.5 Telemetry: Port Speed Test #2297

Merged
merged 29 commits into from
Jan 24, 2024

Conversation

octpetre
Copy link
Contributor

The otg version of this test.
Resolves #581

@octpetre octpetre requested review from a team as code owners October 25, 2023 21:29
@octpetre octpetre requested review from a team and jasdeep-hundal October 25, 2023 21:29
@OpenConfigBot
Copy link

OpenConfigBot commented Oct 25, 2023

Pull Request Functional Test Report for #2297 / 17f3aab

Virtual Devices

Device Test Test Documentation Job Raw Log
Arista cEOS status
gNMI-1.5: Telemetry: Port Speed Test
Cisco 8000E status
gNMI-1.5: Telemetry: Port Speed Test
Cisco XRd status
gNMI-1.5: Telemetry: Port Speed Test
Juniper cPTX status
gNMI-1.5: Telemetry: Port Speed Test
Juniper ncPTX status
gNMI-1.5: Telemetry: Port Speed Test
Nokia SR Linux status
gNMI-1.5: Telemetry: Port Speed Test
Openconfig Lemming status
gNMI-1.5: Telemetry: Port Speed Test

Hardware Devices

Device Test Test Documentation Raw Log
Arista 7808 status
gNMI-1.5: Telemetry: Port Speed Test
Cisco 8808 status
gNMI-1.5: Telemetry: Port Speed Test
Juniper PTX10008 status
gNMI-1.5: Telemetry: Port Speed Test
Nokia 7250 IXR-10e status
gNMI-1.5: Telemetry: Port Speed Test

Help

@coveralls
Copy link

coveralls commented Oct 25, 2023

Pull Request Test Coverage Report for Build 7630885172

  • 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 52.141%

Totals Coverage Status
Change from base Build 7621905154: 0.0%
Covered Lines: 1668
Relevant Lines: 3199

💛 - Coveralls

Comment on lines 323 to 329
val, status := gnmi.Watch(t, tc.dut, gnmi.OC().Interface(tc.aggID).Aggregation().LagSpeed().State(), 60*time.Second, func(val *ygnmi.Value[uint32]) bool { return val.IsPresent() }).Await(t)
if status {
if got, _ := val.Val(); int(got) != want {
t.Errorf("Get(DUT port status): got %v, want %v", got, want)
}
} else {
t.Errorf("Timeout waiting for the Lagspeed value")
Copy link
Contributor

Choose a reason for hiding this comment

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

@octpetre : Thinking we directly compare in the Await

got, ok := gnmi.Watch(t, tc.dut, gnmi.OC().Interface(tc.aggID).Aggregation().LagSpeed().State(), 60*time.Second, func(val *ygnmi.Value[uint32]) bool {
    speed, ok := val.Val()
    return ok && speed == want
}).Await(t)
if !ok {
    t.Errorf("Get(DUT port status): got %v, want %v", got, want)
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@jasdeep-hundal jasdeep-hundal merged commit 0bb4cba into openconfig:main Jan 24, 2024
11 checks passed
frasieroh pushed a commit to aristanetworks/openconfig-featureprofiles that referenced this pull request Jan 24, 2024
* initial ATE test copy

* otg related changes

* removed the ate command

* PR reviews addressed

* removed the deviation for setting the link down in kne

* PR review addressed
bkreddy143 pushed a commit to nokia/featureprofiles that referenced this pull request Jul 17, 2024
* initial ATE test copy

* otg related changes

* removed the ate command

* PR reviews addressed

* removed the deviation for setting the link down in kne

* PR review addressed
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.

OTG: gNMI-1.5: Telemetry: Port Speed Test
4 participants