Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ var moreSkipReasons = map[string]string{
"Election - Ensure that a client with mismatched parameters is rejected": "b/233111738",
}

func shouldSkip(tt *compliance.TestSpec) string {
func shouldSkip(tt *compliance.TestSpec, dut *ondatra.DUTDevice) string {
switch {
case *skipFIBACK && tt.In.RequiresFIBACK:
return "This RequiresFIBACK test is skipped by --skip_fiback"
Expand All @@ -122,6 +122,11 @@ func shouldSkip(tt *compliance.TestSpec) string {
case *skipIPv6 && tt.In.RequiresIPv6:
return "This RequiresIPv6 test is skipped by --skip_ipv6"
}
if (tt.In.ShortName == "Error: Missing NextHopGroup for the IPv4Entry" ||
tt.In.ShortName == "Error: Empty NextHopGroup for the IPv4Entry") &&
deviations.UnreferencedAftFibAckUnsupported(dut) {
return "This test is skipped by unreferenced_aft_fiback_unsupported deviation"
}
return moreSkipReasons[tt.In.ShortName]
}

Expand Down Expand Up @@ -152,7 +157,7 @@ func TestCompliance(t *testing.T) {

for _, tt := range compliance.TestSuite {
t.Run(tt.In.ShortName, func(t *testing.T) {
if reason := shouldSkip(tt); reason != "" {
if reason := shouldSkip(tt, dut); reason != "" {
t.Skip(reason)
}
compliance.SetDefaultNetworkInstanceName(deviations.DefaultNetworkInstance(dut))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ platform_exceptions: {
omit_l2_mtu: true
interface_enabled: true
default_network_instance: "default"
unreferenced_aft_fib_ack_unsupported: true
}
}
5 changes: 5 additions & 0 deletions internal/deviations/deviations.go
Original file line number Diff line number Diff line change
Expand Up @@ -1352,3 +1352,8 @@ func BgpDistanceOcPathUnsupported(dut *ondatra.DUTDevice) bool {
func IsisMplsUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetIsisMplsUnsupported()
}

// UnreferencedAftFibAckUnsupported returns true if no FIB_ACK for unreferenced NH/NHG entries
func UnreferencedAftFibAckUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetUnreferencedAftFibAckUnsupported()
}
3 changes: 3 additions & 0 deletions proto/metadata.proto
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,9 @@ message Metadata {
// Devices that do not support ISIS MPLS
bool isis_mpls_unsupported = 268;

// No FIB_ACK support for unreferenced NH/NHG entries
bool unreferenced_aft_fib_ack_unsupported = 269;

// Reserved field numbers and identifiers.
reserved 84, 9, 28, 20, 38, 43, 90, 97, 55, 89, 19, 36, 35, 40, 113, 131, 141, 173, 234, 254;
}
Expand Down
20 changes: 15 additions & 5 deletions proto/metadata_go_proto/metadata.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.