Skip to content

Commit

Permalink
update RT1.27
Browse files Browse the repository at this point in the history
  • Loading branch information
ANISH-GOTTAPU committed Oct 3, 2024
1 parent 5dd4e85 commit 9e84248
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1478,7 +1478,15 @@ func validateRedistributeNullNextHopStaticRoute(t *testing.T, dut *ondatra.DUTDe

// Used by multiple IPv4 test validations for route presence and MED value
func validateLearnedIPv4Prefix(t *testing.T, ate *ondatra.ATEDevice, bgpPeerName, subnet string, expectedMED uint32, shouldBePresent bool) {
time.Sleep(5 * time.Second)

_, ok := gnmi.WatchAll(t, ate.OTG(), gnmi.OTG().BgpPeer(bgpPeerName).UnicastIpv4PrefixAny().State(),
time.Minute, func(v *ygnmi.Value[*otgtelemetry.BgpPeer_UnicastIpv4Prefix]) bool {
return v.IsPresent()
}).Await(t)

if !ok {
t.Errorf("No BGP prefixes learnt")
}

bgpPrefixes := gnmi.GetAll(t, ate.OTG(), gnmi.OTG().BgpPeer(bgpPeerName).UnicastIpv4PrefixAny().State())
found := false
Expand Down

0 comments on commit 9e84248

Please sign in to comment.