Skip to content

Commit

Permalink
add 3-second delay to explicitportspeed deviation / SetPortSpeed func…
Browse files Browse the repository at this point in the history
…tion (#1162)
  • Loading branch information
LimeHat authored Feb 21, 2023
1 parent 506c726 commit 11e5c0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/fptest/portspeed.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ package fptest

import (
"testing"
"time"

"github.com/openconfig/ondatra"
"github.com/openconfig/ondatra/gnmi"
Expand All @@ -49,4 +50,5 @@ func SetPortSpeed(t *testing.T, p *ondatra.Port) {
}
t.Logf("Configuring %v port-speed to %v", p.Name(), speed)
gnmi.Update(t, p.Device(), gnmi.OC().Interface(p.Name()).Ethernet().PortSpeed().Config(), speed)
time.Sleep(time.Second * 3)
}

0 comments on commit 11e5c0c

Please sign in to comment.