Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TE-9.2: Added deviation static_lsp_unsupported #3347

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
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
9 changes: 9 additions & 0 deletions feature/gribi/otg_tests/static_lsp_test/metadata.textproto
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,12 @@ platform_exceptions: {
ipv4_missing_enabled: true
}
}

platform_exceptions: {
platform: {
vendor: JUNIPER
}
deviations: {
static_lsp_unsupported: true
}
}
3 changes: 3 additions & 0 deletions feature/gribi/otg_tests/static_lsp_test/static_lsp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ func TestMplsStaticLabel(t *testing.T) {
ate := ondatra.ATE(t, "ate")
otgObj := ate.OTG()

if deviations.StaticLspConfigUnsupported(dut) {
t.Skipf("Skipping the testcase for unsupported device")
mohanasm marked this conversation as resolved.
Show resolved Hide resolved
}
t.Run("configureDUT Interfaces", func(t *testing.T) {
// Configure the DUT
configureDUT(t, dut)
Expand Down
5 changes: 5 additions & 0 deletions internal/deviations/deviations.go
Original file line number Diff line number Diff line change
Expand Up @@ -1108,3 +1108,8 @@ func BgpExplicitExtendedCommunityEnable(dut *ondatra.DUTDevice) bool {
func MatchTagSetConditionUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetMatchTagSetConditionUnsupported()
}

// StaticLspConfigUnsupported returns true if static lsp config is not supported
func StaticLspConfigUnsupported(dut *ondatra.DUTDevice) bool {
return lookupDUTDeviations(dut).GetStaticLspUnsupported()
}
3 changes: 3 additions & 0 deletions proto/metadata.proto
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,9 @@ message Metadata {
bool bgp_explicit_extended_community_enable = 208;
// devices that do not support match tag set condition
bool match_tag_set_condition_unsupported = 209;
// Devices that do no support static lsp config
// Juniper b/356635233
bool static_lsp_unsupported = 210;

// Reserved field numbers and identifiers.
reserved 84, 9, 28, 20, 90, 97, 55, 89, 19, 36, 35;
Expand Down
97 changes: 55 additions & 42 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.

Loading