Skip to content

Commit

Permalink
Added deviation static_lsp_unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
KandukuriSudheer committed Jul 31, 2024
1 parent c206e2c commit a04e898
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 42 deletions.
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")
}
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.

0 comments on commit a04e898

Please sign in to comment.