Skip to content
Open
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 @@ -20,4 +20,12 @@ platform_exceptions: {
interface_enabled: true
}
}
platform_exceptions: {
platform: {
vendor: JUNIPER
}
deviations: {
state_path_unsupported: true
}
}
Comment thread
priyaranjannanda marked this conversation as resolved.

Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,9 @@ func testTelemetryInterfacesStateSubinterface(t *testing.T, dut *ondatra.DUTDevi
t.Helper()
p := gnmi.OC()
subIntfIndex := uint32(100)
if dut.Vendor() == ondatra.JUNIPER {
subIntfIndex = 0
}
Comment thread
priyaranjannanda marked this conversation as resolved.
description := "test description"

for _, port := range ports {
Expand Down Expand Up @@ -366,7 +369,11 @@ func testTelemetryInterfacesStateSubinterface(t *testing.T, dut *ondatra.DUTDevi
t.Errorf("\n\n [FAILED]: leaf: Subinterface description is not present on port %s subinterface: '%v' \n\n", port, subinterface)
}

gnmi.Delete(t, dut, subinterface.Config())
if dut.Vendor() == ondatra.JUNIPER && subIntfIndex == 0 {
gnmi.Delete(t, dut, subinterface.Description().Config())
} else {
gnmi.Delete(t, dut, subinterface.Config())
}
Comment thread
priyaranjannanda marked this conversation as resolved.
}
}

Expand Down
Loading