Skip to content

Commit

Permalink
rt-1.23 reverting skip_bgp_session_check_without_afisafi and updating…
Browse files Browse the repository at this point in the history
… lookup instead of get
  • Loading branch information
fmolinar committed Feb 28, 2025
1 parent ee80a3d commit eb94a9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,14 @@ func verifyBgpCapabilities(t *testing.T, dut *ondatra.DUTDevice, afiSafiLevel st
if !nbr.isV4 && afiSafi == oc.BgpTypes_AFI_SAFI_TYPE_IPV4_UNICAST {
continue
}
t.Logf("AFI-SAFI state: %v", gnmi.Get(t, dut, statePath.Neighbor(nbr.neighborip).AfiSafi(afiSafi).State()))
afiSafiList = append(afiSafiList, gnmi.Get(t, dut, statePath.Neighbor(nbr.neighborip).AfiSafi(afiSafi).State()))
t.Logf("AFI-SAFI state: %v", gnmi.Lookup(t, dut, statePath.Neighbor(nbr.neighborip).AfiSafi(afiSafi).State()))
res := gnmi.Lookup(t, dut, statePath.Neighbor(nbr.neighborip).AfiSafi(afiSafi).State())
if res != nil {
val, err := res.Val()
if !err {
afiSafiList = append(afiSafiList, val)
}
}
t.Logf("AFI-SAFI list: %v", afiSafiList)
}
for _, cap := range afiSafiList {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ platform_exceptions: {
bgp_extended_next_hop_encoding_leaf_unsupported: true
bgp_global_extended_next_hop_encoding_unsupported: true
bgp_afi_safi_wildcard_not_supported: true
skip_bgp_session_check_without_afisafi: true
}
}
platform_exceptions: {
Expand Down

0 comments on commit eb94a9c

Please sign in to comment.