diff --git a/feature/bgp/otg_tests/bgp_override_as_path_split_horizon_test/bgp_override_as_path_split_horizon_test.go b/feature/bgp/otg_tests/bgp_override_as_path_split_horizon_test/bgp_override_as_path_split_horizon_test.go index 7f574446d81..94416a9bceb 100644 --- a/feature/bgp/otg_tests/bgp_override_as_path_split_horizon_test/bgp_override_as_path_split_horizon_test.go +++ b/feature/bgp/otg_tests/bgp_override_as_path_split_horizon_test/bgp_override_as_path_split_horizon_test.go @@ -240,7 +240,6 @@ func configureRoutePolicy(t *testing.T, dut *ondatra.DUTDevice, name string, pr t.Fatalf("AppendNewStatement(%s) failed: %v", name, err) } stmt.GetOrCreateActions().PolicyResult = pr - stmt.GetOrCreateConditions().InstallProtocolEq = oc.PolicyTypes_INSTALL_PROTOCOL_TYPE_BGP gnmi.Update(t, dut, gnmi.OC().RoutingPolicy().Config(), rp) } diff --git a/feature/gnmi/otg_tests/telemetry_basic_check_test/metadata.textproto b/feature/gnmi/otg_tests/telemetry_basic_check_test/metadata.textproto index 9918782cd47..ccae88e816d 100644 --- a/feature/gnmi/otg_tests/telemetry_basic_check_test/metadata.textproto +++ b/feature/gnmi/otg_tests/telemetry_basic_check_test/metadata.textproto @@ -13,6 +13,7 @@ platform_exceptions: { deviations: { ipv4_missing_enabled: true interface_counters_from_container: true + interface_counters_update_delayed: true } } platform_exceptions: { @@ -24,6 +25,7 @@ platform_exceptions: { ipv4_missing_enabled: true interface_counters_from_container: true os_component_parent_is_supervisor_or_linecard: true + interface_counters_update_delayed: true } } platform_exceptions: { diff --git a/feature/gnmi/otg_tests/telemetry_basic_check_test/telemetry_basic_check_test.go b/feature/gnmi/otg_tests/telemetry_basic_check_test/telemetry_basic_check_test.go index fb71e43b079..1d13fb1748b 100644 --- a/feature/gnmi/otg_tests/telemetry_basic_check_test/telemetry_basic_check_test.go +++ b/feature/gnmi/otg_tests/telemetry_basic_check_test/telemetry_basic_check_test.go @@ -18,6 +18,7 @@ import ( "math" "regexp" "strconv" + "sync" "testing" "time" @@ -27,6 +28,7 @@ import ( "github.com/openconfig/featureprofiles/internal/deviations" "github.com/openconfig/featureprofiles/internal/fptest" "github.com/openconfig/featureprofiles/internal/otgutils" + "github.com/openconfig/featureprofiles/internal/samplestream" "github.com/openconfig/ondatra" "github.com/openconfig/ondatra/gnmi" "github.com/openconfig/ondatra/gnmi/oc" @@ -398,8 +400,9 @@ func verifyChassisIsAncestor(t *testing.T, dut *ondatra.DUTDevice, comp string) t.Errorf("Chassis component NOT found as an ancestor of component %s", comp) break } - got := gnmi.Get(t, dut, gnmi.OC().Component(val).Type().State()) - if got == chassisType { + gotV := gnmi.Lookup(t, dut, gnmi.OC().Component(val).Type().State()) + got, present := gotV.Val() + if present && got == chassisType { t.Logf("Found chassis component as an ancestor of component %s", comp) break } @@ -765,16 +768,51 @@ func TestP4rtNodeID(t *testing.T) { } } -func fetchInAndOutPkts(t *testing.T, dut *ondatra.DUTDevice, dp1, dp2 *ondatra.Port) (uint64, uint64) { - if deviations.InterfaceCountersFromContainer(dut) { - inPkts := *gnmi.Get(t, dut, gnmi.OC().Interface(dp1.Name()).Counters().State()).InUnicastPkts - outPkts := *gnmi.Get(t, dut, gnmi.OC().Interface(dp2.Name()).Counters().State()).OutUnicastPkts - return inPkts, outPkts +func fetchInAndOutPkts(t *testing.T, dut *ondatra.DUTDevice, dp1, dp2 *ondatra.Port, + inTarget, outTarget uint64) (uint64, uint64) { + t.Helper() + + inPktStream := samplestream.New(t, dut, gnmi.OC().Interface(dp1.Name()).Counters().InUnicastPkts().State(), 10*time.Second) + defer inPktStream.Close() + outPktStream := samplestream.New(t, dut, gnmi.OC().Interface(dp2.Name()).Counters().OutUnicastPkts().State(), 10*time.Second) + defer outPktStream.Close() + + var wg sync.WaitGroup + var inPktsV, outPktsV uint64 + + startTime := time.Now() + timeout := 10 * time.Second + if deviations.InterfaceCountersUpdateDelayed(dut) { + timeout = 30 * time.Second + } + + for { + wg.Add(1) + go func() { + defer wg.Done() + if v := inPktStream.Next(); v != nil { + if val, ok := v.Val(); ok { + inPktsV = val + } + } + }() + if v := outPktStream.Next(); v != nil { + if val, ok := v.Val(); ok { + outPktsV = val + } + } + wg.Wait() + + if inPktsV >= inTarget && outPktsV >= outTarget { + break + } + + if time.Since(startTime) > timeout { + t.Fatalf("Did not receive a packet counters in time") + } } - inPkts := gnmi.Get(t, dut, gnmi.OC().Interface(dp1.Name()).Counters().InUnicastPkts().State()) - outPkts := gnmi.Get(t, dut, gnmi.OC().Interface(dp2.Name()).Counters().OutUnicastPkts().State()) - return inPkts, outPkts + return inPktsV, outPktsV } func TestIntfCounterUpdate(t *testing.T) { @@ -822,9 +860,10 @@ func TestIntfCounterUpdate(t *testing.T) { v4.Priority().Dscp().Phb().SetValue(56) otg.PushConfig(t, config) otg.StartProtocols(t) + otgutils.WaitForARP(t, ate.OTG(), config, "IPv4") t.Log("Running traffic on DUT interfaces: ", dp1, dp2) - dutInPktsBeforeTraffic, dutOutPktsBeforeTraffic := fetchInAndOutPkts(t, dut, dp1, dp2) + dutInPktsBeforeTraffic, dutOutPktsBeforeTraffic := fetchInAndOutPkts(t, dut, dp1, dp2, 0, 0) t.Log("inPkts and outPkts counters before traffic: ", dutInPktsBeforeTraffic, dutOutPktsBeforeTraffic) otg.StartTraffic(t) time.Sleep(10 * time.Second) @@ -847,24 +886,25 @@ func TestIntfCounterUpdate(t *testing.T) { } otgutils.LogFlowMetrics(t, otg, config) - ateInPkts := float32(gnmi.Get(t, otg, gnmi.OTG().Flow(flowName).Counters().InPkts().State())) - ateOutPkts := float32(gnmi.Get(t, otg, gnmi.OTG().Flow(flowName).Counters().OutPkts().State())) + ateInPkts := gnmi.Get(t, otg, gnmi.OTG().Flow(flowName).Counters().InPkts().State()) + ateOutPkts := gnmi.Get(t, otg, gnmi.OTG().Flow(flowName).Counters().OutPkts().State()) if ateOutPkts == 0 { t.Errorf("Get(out packets for flow %q: got %v, want nonzero", flowName, ateOutPkts) } - lossPct := (ateOutPkts - ateInPkts) * 100 / ateOutPkts + lossPct := float64(ateOutPkts-ateInPkts) * 100 / float64(ateOutPkts) if lossPct >= 0.1 { t.Errorf("Get(traffic loss for flow %q: got %v, want < 0.1", flowName, lossPct) } - dutInPktsAfterTraffic, dutOutPktsAfterTraffic := fetchInAndOutPkts(t, dut, dp1, dp2) + dutInPktsAfterTraffic, dutOutPktsAfterTraffic := fetchInAndOutPkts(t, dut, dp1, dp2, + dutInPktsBeforeTraffic+ateOutPkts, dutOutPktsBeforeTraffic+ateInPkts) t.Log("inPkts and outPkts counters after traffic: ", dutInPktsAfterTraffic, dutOutPktsAfterTraffic) - if dutInPktsAfterTraffic-dutInPktsBeforeTraffic < uint64(ateInPkts) { - t.Errorf("Get less inPkts from telemetry: got %v, want >= %v", dutInPktsAfterTraffic-dutInPktsBeforeTraffic, ateOutPkts) + if got, want := dutInPktsAfterTraffic-dutInPktsBeforeTraffic, ateOutPkts; got < want { + t.Errorf("Get less inPkts from telemetry: got %v, want >= %v", got, want) } - if dutOutPktsAfterTraffic-dutOutPktsBeforeTraffic < uint64(ateOutPkts) { - t.Errorf("Get less outPkts from telemetry: got %v, want >= %v", dutOutPktsAfterTraffic-dutOutPktsBeforeTraffic, ateOutPkts) + if got, want := dutOutPktsAfterTraffic-dutOutPktsBeforeTraffic, ateInPkts; got < want { + t.Errorf("Get less outPkts from telemetry: got %v, want >= %v", got, want) } } diff --git a/feature/isis/otg_tests/isis_change_lsp_lifetime_test/isis_change_lsp_lifetime_test.go b/feature/isis/otg_tests/isis_change_lsp_lifetime_test/isis_change_lsp_lifetime_test.go index 8b731d015be..b1a040f2426 100644 --- a/feature/isis/otg_tests/isis_change_lsp_lifetime_test/isis_change_lsp_lifetime_test.go +++ b/feature/isis/otg_tests/isis_change_lsp_lifetime_test/isis_change_lsp_lifetime_test.go @@ -66,9 +66,6 @@ func configureISIS(t *testing.T, ts *isissession.TestSession) { globalIsis.GetOrCreateAf(oc.IsisTypes_AFI_TYPE_IPV6, oc.IsisTypes_SAFI_TYPE_UNICAST).Enabled = ygot.Bool(true) globalIsis.LevelCapability = oc.Isis_LevelType_LEVEL_2 globalIsis.GetOrCreateTimers().LspLifetimeInterval = ygot.Uint16(lspLifetime) - if deviations.ISISLspLifetimeIntervalRequiresLspRefreshInterval(ts.DUT) { - globalIsis.GetOrCreateTimers().LspRefreshInterval = ygot.Uint16(60) - } } // configureOTG configures isis and traffic on OTG. diff --git a/feature/isis/otg_tests/isis_change_lsp_lifetime_test/metadata.textproto b/feature/isis/otg_tests/isis_change_lsp_lifetime_test/metadata.textproto index d1829e30cd9..fb432156be9 100644 --- a/feature/isis/otg_tests/isis_change_lsp_lifetime_test/metadata.textproto +++ b/feature/isis/otg_tests/isis_change_lsp_lifetime_test/metadata.textproto @@ -38,7 +38,6 @@ platform_exceptions: { interface_enabled: true default_network_instance: "default" isis_interface_afi_unsupported: true - isis_lsp_lifetime_interval_requires_lsp_refresh_interval: true isis_lsp_metadata_leafs_unsupported: true } } diff --git a/feature/isis/otg_tests/isis_interface_hello_padding_enable_test/isis_interface_hello_padding_enable_test.go b/feature/isis/otg_tests/isis_interface_hello_padding_enable_test/isis_interface_hello_padding_enable_test.go index 3cdf361d287..b6b010c38f0 100644 --- a/feature/isis/otg_tests/isis_interface_hello_padding_enable_test/isis_interface_hello_padding_enable_test.go +++ b/feature/isis/otg_tests/isis_interface_hello_padding_enable_test/isis_interface_hello_padding_enable_test.go @@ -400,7 +400,7 @@ func TestIsisInterfaceHelloPaddingEnable(t *testing.T) { t.Run("Traffic checks", func(t *testing.T) { t.Logf("Starting traffic") otg.StartTraffic(t) - time.Sleep(time.Second * 15) + time.Sleep(time.Second * 30) t.Logf("Stop traffic") otg.StopTraffic(t) diff --git a/feature/isis/otg_tests/isis_interface_hello_padding_enable_test/metadata.textproto b/feature/isis/otg_tests/isis_interface_hello_padding_enable_test/metadata.textproto index d2d6f5384f1..75dd503baeb 100644 --- a/feature/isis/otg_tests/isis_interface_hello_padding_enable_test/metadata.textproto +++ b/feature/isis/otg_tests/isis_interface_hello_padding_enable_test/metadata.textproto @@ -39,7 +39,6 @@ platform_exceptions: { missing_value_for_defaults: true interface_enabled: true default_network_instance: "default" - isis_lsp_lifetime_interval_requires_lsp_refresh_interval: true isis_timers_csnp_interval_unsupported: true isis_counter_manual_address_drop_from_areas_unsupported: true isis_counter_part_changes_unsupported: true diff --git a/feature/isis/otg_tests/isis_interface_level_passive_test/metadata.textproto b/feature/isis/otg_tests/isis_interface_level_passive_test/metadata.textproto index c73452f374f..08d65df2716 100644 --- a/feature/isis/otg_tests/isis_interface_level_passive_test/metadata.textproto +++ b/feature/isis/otg_tests/isis_interface_level_passive_test/metadata.textproto @@ -41,7 +41,6 @@ platform_exceptions: { interface_enabled: true default_network_instance: "default" isis_interface_afi_unsupported: true - isis_lsp_lifetime_interval_requires_lsp_refresh_interval: true isis_timers_csnp_interval_unsupported: true isis_counter_manual_address_drop_from_areas_unsupported: true isis_counter_part_changes_unsupported: true diff --git a/feature/isis/otg_tests/isis_interface_passive_test/metadata.textproto b/feature/isis/otg_tests/isis_interface_passive_test/metadata.textproto index 75bc2932d0e..70d36d2b476 100644 --- a/feature/isis/otg_tests/isis_interface_passive_test/metadata.textproto +++ b/feature/isis/otg_tests/isis_interface_passive_test/metadata.textproto @@ -40,7 +40,6 @@ platform_exceptions: { interface_enabled: true default_network_instance: "default" isis_interface_afi_unsupported: true - isis_lsp_lifetime_interval_requires_lsp_refresh_interval: true isis_timers_csnp_interval_unsupported: true isis_counter_manual_address_drop_from_areas_unsupported: true isis_counter_part_changes_unsupported: true diff --git a/feature/isis/otg_tests/isis_metric_style_wide_not_enabled_test/metadata.textproto b/feature/isis/otg_tests/isis_metric_style_wide_not_enabled_test/metadata.textproto index c5d39a9df20..4a419969340 100644 --- a/feature/isis/otg_tests/isis_metric_style_wide_not_enabled_test/metadata.textproto +++ b/feature/isis/otg_tests/isis_metric_style_wide_not_enabled_test/metadata.textproto @@ -37,7 +37,6 @@ platform_exceptions: { missing_value_for_defaults: true interface_enabled: true default_network_instance: "default" - isis_lsp_lifetime_interval_requires_lsp_refresh_interval: true isis_timers_csnp_interval_unsupported: true isis_counter_manual_address_drop_from_areas_unsupported: true isis_counter_part_changes_unsupported: true diff --git a/feature/isis/otg_tests/static_route_isis_redistribution/static_route_isis_redistribution_test.go b/feature/isis/otg_tests/static_route_isis_redistribution/static_route_isis_redistribution_test.go index 346641df6eb..cb359da9341 100644 --- a/feature/isis/otg_tests/static_route_isis_redistribution/static_route_isis_redistribution_test.go +++ b/feature/isis/otg_tests/static_route_isis_redistribution/static_route_isis_redistribution_test.go @@ -53,9 +53,11 @@ const ( v6Flow = "v6Flow" trafficDuration = 30 * time.Second prefixMatch = "exact" + v4tagSet = "tag-set-v4" v4RoutePolicy = "route-policy-v4" v4Statement = "statement-v4" v4PrefixSet = "prefix-set-v4" + v6tagSet = "tag-set-v6" v6RoutePolicy = "route-policy-v6" v6Statement = "statement-v6" v6PrefixSet = "prefix-set-v6" @@ -234,7 +236,6 @@ func configureRoutePolicy(dut *ondatra.DUTDevice, rplName string, statement stri if err != nil { return nil, err } - v4tagSet := getTagSetName(dut, rplName, v4Statement, "v4") tagSet1 := rp.GetOrCreateDefinedSets().GetOrCreateTagSet(v4tagSet) tagSet1.SetTagValue([]oc.RoutingPolicy_DefinedSets_TagSet_TagValue_Union{oc.UnionUint32(V4tagValue)}) stmt1.GetOrCreateConditions().GetOrCreateMatchTagSet().SetTagSet(v4tagSet) @@ -244,7 +245,6 @@ func configureRoutePolicy(dut *ondatra.DUTDevice, rplName string, statement stri if err != nil { return nil, err } - v6tagSet := getTagSetName(dut, rplName, v6Statement, "v6") tagSet2 := rp.GetOrCreateDefinedSets().GetOrCreateTagSet(v6tagSet) tagSet2.SetTagValue([]oc.RoutingPolicy_DefinedSets_TagSet_TagValue_Union{oc.UnionUint32(V6tagValue)}) stmt2.GetOrCreateConditions().GetOrCreateMatchTagSet().SetTagSet(v6tagSet) @@ -367,13 +367,6 @@ func verifyRplConfig(t *testing.T, dut *ondatra.DUTDevice, tagSetName string, ta } } -func getTagSetName(dut *ondatra.DUTDevice, policyName, stmtName, afStr string) string { - if deviations.RoutingPolicyTagSetEmbedded(dut) { - return fmt.Sprintf("%s %s", policyName, stmtName) - } - return fmt.Sprintf("tag-set-%s", afStr) -} - func TestStaticToISISRedistribution(t *testing.T) { var ts *isissession.TestSession @@ -506,8 +499,8 @@ func TestStaticToISISRedistribution(t *testing.T) { if tc.TagSetCondition { t.Run("Verify Configuration for RPL TagSet", func(t *testing.T) { - verifyRplConfig(t, ts.DUT, getTagSetName(ts.DUT, tc.RplName, v4Statement, "v4"), oc.UnionUint32(V4tagValue)) - verifyRplConfig(t, ts.DUT, getTagSetName(ts.DUT, tc.RplName, v6Statement, "v6"), oc.UnionUint32(V6tagValue)) + verifyRplConfig(t, ts.DUT, v4tagSet, oc.UnionUint32(V4tagValue)) + verifyRplConfig(t, ts.DUT, v6tagSet, oc.UnionUint32(V6tagValue)) }) } diff --git a/feature/platform/tests/power_admin_down_up_test/power_admin_down_up_test.go b/feature/platform/tests/power_admin_down_up_test/power_admin_down_up_test.go index d3bfc7d3d53..89163d8f605 100644 --- a/feature/platform/tests/power_admin_down_up_test/power_admin_down_up_test.go +++ b/feature/platform/tests/power_admin_down_up_test/power_admin_down_up_test.go @@ -74,7 +74,7 @@ func TestLinecardPowerAdmin(t *testing.T) { before := helpers.FetchOperStatusUPIntfs(t, dut, false) - powerDownUp(t, dut, l, oc.PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_LINECARD, 10*time.Minute) + powerDownUp(t, dut, l, oc.PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_LINECARD, 20*time.Minute) helpers.ValidateOperStatusUPIntfs(t, dut, before, 5*time.Minute) }) @@ -107,7 +107,7 @@ func TestControllerCardPowerAdmin(t *testing.T) { t.Skipf("ControllerCard Component %s is already INACTIVE, hence skipping", c) } - powerDownUp(t, dut, c, oc.PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_CONTROLLER_CARD, 5*time.Minute) + powerDownUp(t, dut, c, oc.PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_CONTROLLER_CARD, 20*time.Minute) }) } if primary != "" { diff --git a/feature/system/tests/system_base_test/README.md b/feature/system/tests/system_base_test/README.md index 8057fc43d83..db421fd9254 100644 --- a/feature/system/tests/system_base_test/README.md +++ b/feature/system/tests/system_base_test/README.md @@ -37,3 +37,22 @@ used for mTLS. 2. Each test will then create a client to those services and valid each service is properly listening on the standard port. 3. Validate client properly connects and execute a simple RPC to validate no errors are returned. + +## OpenConfig Path and RPC Coverage + +```yaml +paths: + /system/state/motd-banner: + /system/state/login-banner: + /system/state/hostname: + /system/state/current-datetime: + /system/state/boot-time: + /system/clock/state/timezone-name: + +rpcs: + gnmi: + gNMI.Set: + replace: true + delete: true + gNMI.Subscribe: +``` \ No newline at end of file diff --git a/feature/system/tests/system_base_test/g_protocol_test.go b/feature/system/tests/system_base_test/g_protocol_test.go index 8e901db64e0..4b80e0695b1 100644 --- a/feature/system/tests/system_base_test/g_protocol_test.go +++ b/feature/system/tests/system_base_test/g_protocol_test.go @@ -21,6 +21,7 @@ import ( "testing" "time" + "github.com/openconfig/featureprofiles/internal/deviations" "github.com/openconfig/ondatra" "github.com/openconfig/ondatra/binding/introspect" "google.golang.org/grpc" @@ -58,7 +59,22 @@ func TestGNMIClient(t *testing.T) { dut := ondatra.DUT(t, "dut") conn := dialConn(t, dut, introspect.GNMI, 9339) c := gpb.NewGNMIClient(conn) - if _, err := c.Get(context.Background(), &gpb.GetRequest{Encoding: gpb.Encoding_JSON_IETF, Path: []*gpb.Path{{Elem: []*gpb.PathElem{}}}}); err != nil { + + var req *gpb.GetRequest + if deviations.GNMIGetOnRootUnsupported(dut) { + req = &gpb.GetRequest{ + Path: []*gpb.Path{{ + Elem: []*gpb.PathElem{ + {Name: "system"}, {Name: "state"}, {Name: "hostname"}}}, + }, + Type: gpb.GetRequest_STATE, + Encoding: gpb.Encoding_JSON_IETF, + } + } else { + req = &gpb.GetRequest{Encoding: gpb.Encoding_JSON_IETF, Path: []*gpb.Path{{Elem: []*gpb.PathElem{}}}} + } + + if _, err := c.Get(context.Background(), req); err != nil { t.Fatalf("gnmi.Get failed: %v", err) } } @@ -105,7 +121,20 @@ func TestP4RTClient(t *testing.T) { dut := ondatra.DUT(t, "dut") conn := dialConn(t, dut, introspect.P4RT, 9559) c := p4rtpb.NewP4RuntimeClient(conn) - if _, err := c.Capabilities(context.Background(), &p4rtpb.CapabilitiesRequest{}); err != nil { - t.Fatalf("p4rt.Capabilites failed: %v", err) + if deviations.P4RTCapabilitiesUnsupported(dut) { + if _, err := c.Read(context.Background(), &p4rtpb.ReadRequest{ + DeviceId: 1, + Entities: []*p4rtpb.Entity{ + { + Entity: &p4rtpb.Entity_TableEntry{}, + }, + }, + }); err != nil { + t.Fatalf("p4rt.Read failed: %v", err) + } + } else { + if _, err := c.Capabilities(context.Background(), &p4rtpb.CapabilitiesRequest{}); err != nil { + t.Fatalf("p4rt.Capabilites failed: %v", err) + } } } diff --git a/feature/system/tests/system_base_test/metadata.textproto b/feature/system/tests/system_base_test/metadata.textproto index b2c7c4f4675..129610d2bb2 100644 --- a/feature/system/tests/system_base_test/metadata.textproto +++ b/feature/system/tests/system_base_test/metadata.textproto @@ -13,3 +13,12 @@ platform_exceptions: { cli_takes_precedence_over_oc: true } } +platform_exceptions: { + platform: { + vendor: CISCO + } + deviations: { + p4rt_capabilities_unsupported: true + gnmi_get_on_root_unsupported: true + } +} diff --git a/internal/deviations/deviations.go b/internal/deviations/deviations.go index 89f50f38954..1b02d388b17 100644 --- a/internal/deviations/deviations.go +++ b/internal/deviations/deviations.go @@ -496,12 +496,6 @@ func P4RTGdpRequiresDot1QSubinterface(dut *ondatra.DUTDevice) bool { return lookupDUTDeviations(dut).GetP4RtGdpRequiresDot1QSubinterface() } -// ISISLspLifetimeIntervalRequiresLspRefreshInterval returns true for devices that require -// configuring lspRefreshInterval ISIS timer when lspLifetimeInterval is configured. -func ISISLspLifetimeIntervalRequiresLspRefreshInterval(dut *ondatra.DUTDevice) bool { - return lookupDUTDeviations(dut).GetIsisLspLifetimeIntervalRequiresLspRefreshInterval() -} - // LinecardCPUUtilizationUnsupported returns if the device does not support telemetry path // /components/component/cpu/utilization/state/avg for linecards' CPU card. // Default value is false. @@ -1307,3 +1301,13 @@ func QosSchedulerIngressPolicer(dut *ondatra.DUTDevice) bool { func GribiEncapHeaderUnsupported(dut *ondatra.DUTDevice) bool { return lookupDUTDeviations(dut).GetGribiEncapHeaderUnsupported() } + +// P4RTCapabilitiesUnsupported returns true for devices that don't support P4RT Capabilities rpc. +func P4RTCapabilitiesUnsupported(dut *ondatra.DUTDevice) bool { + return lookupDUTDeviations(dut).GetP4RtCapabilitiesUnsupported() +} + +// GNMIGetOnRootUnsupported returns true if the device does not support gNMI get on root. +func GNMIGetOnRootUnsupported(dut *ondatra.DUTDevice) bool { + return lookupDUTDeviations(dut).GetGnmiGetOnRootUnsupported() +} diff --git a/proto/metadata.proto b/proto/metadata.proto index 1ae41dab5c1..b4409bfec7a 100644 --- a/proto/metadata.proto +++ b/proto/metadata.proto @@ -283,10 +283,6 @@ message Metadata { bool ate_port_link_state_operations_unsupported = 94; // Creates a user and assigns role/rbac to said user via native model. bool set_native_user = 95; - // Devices require configuring lspRefreshInterval ISIS timer when - // lspLifetimeInterval is configured. - // Arista: partnerissuetracker.corp.google.com/293667850 - bool isis_lsp_lifetime_interval_requires_lsp_refresh_interval = 96; // Device does not support telemetry path // /components/component/cpu/utilization/state/avg for linecards' CPU card. bool linecard_cpu_utilization_unsupported = 98; @@ -699,6 +695,14 @@ message Metadata { // Devices that do not support gRIBIencap headers. bool gribi_encap_header_unsupported = 249; + // Device does not support P4RT Capabilities rpc. + // Cisco: b/385298158 + bool p4rt_capabilities_unsupported = 250; + + // Device does not support gNMI GET on root. + // Cisco: b/385298159 + bool gnmi_get_on_root_unsupported = 251; + // Reserved field numbers and identifiers. reserved 84, 9, 28, 20, 90, 97, 55, 89, 19, 36, 35, 40, 173; } diff --git a/proto/metadata_go_proto/metadata.pb.go b/proto/metadata_go_proto/metadata.pb.go index 7b2399e653e..410b6fc9f00 100644 --- a/proto/metadata_go_proto/metadata.pb.go +++ b/proto/metadata_go_proto/metadata.pb.go @@ -14,8 +14,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.1 -// protoc v5.29.2 +// protoc-gen-go v1.28.1 +// protoc v4.25.0 // source: metadata.proto package metadata_go_proto @@ -164,7 +164,10 @@ func (Metadata_Tags) EnumDescriptor() ([]byte, []int) { // Metadata about a Feature Profiles test. type Metadata struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // UUID of the test. Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // ID of the test in the test plan. @@ -182,15 +185,15 @@ type Metadata struct { // Whether this test only checks paths for presence rather than semantic // checks. PathPresenceTest bool `protobuf:"varint,7,opt,name=path_presence_test,json=pathPresenceTest,proto3" json:"path_presence_test,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache } func (x *Metadata) Reset() { *x = Metadata{} - mi := &file_metadata_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_metadata_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Metadata) String() string { @@ -201,7 +204,7 @@ func (*Metadata) ProtoMessage() {} func (x *Metadata) ProtoReflect() protoreflect.Message { mi := &file_metadata_proto_msgTypes[0] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -266,7 +269,10 @@ func (x *Metadata) GetPathPresenceTest() bool { } type Metadata_Platform struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Vendor of the device. Vendor proto.Device_Vendor `protobuf:"varint,1,opt,name=vendor,proto3,enum=ondatra.Device_Vendor" json:"vendor,omitempty"` // Regex for hardware model of the device. @@ -275,15 +281,15 @@ type Metadata_Platform struct { // Regex for software version of the device. // The empty string will match any software version. SoftwareVersionRegex string `protobuf:"bytes,4,opt,name=software_version_regex,json=softwareVersionRegex,proto3" json:"software_version_regex,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache } func (x *Metadata_Platform) Reset() { *x = Metadata_Platform{} - mi := &file_metadata_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_metadata_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Metadata_Platform) String() string { @@ -294,7 +300,7 @@ func (*Metadata_Platform) ProtoMessage() {} func (x *Metadata_Platform) ProtoReflect() protoreflect.Message { mi := &file_metadata_proto_msgTypes[1] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -331,7 +337,10 @@ func (x *Metadata_Platform) GetSoftwareVersionRegex() string { } type Metadata_Deviations struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Device does not support interface/ipv4/enabled, // so suppress configuring this leaf. Ipv4MissingEnabled bool `protobuf:"varint,1,opt,name=ipv4_missing_enabled,json=ipv4MissingEnabled,proto3" json:"ipv4_missing_enabled,omitempty"` @@ -970,15 +979,21 @@ type Metadata_Deviations struct { // Arista: b/354689142 // Devices that do not support gRIBIencap headers. GribiEncapHeaderUnsupported bool `protobuf:"varint,249,opt,name=gribi_encap_header_unsupported,json=gribiEncapHeaderUnsupported,proto3" json:"gribi_encap_header_unsupported,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + // Device does not support P4RT Capabilities rpc. + // Cisco: b/385298158 + P4RtCapabilitiesUnsupported bool `protobuf:"varint,250,opt,name=p4rt_capabilities_unsupported,json=p4rtCapabilitiesUnsupported,proto3" json:"p4rt_capabilities_unsupported,omitempty"` + // Device does not support gNMI GET on root. + // Cisco: b/385298159 + GnmiGetOnRootUnsupported bool `protobuf:"varint,251,opt,name=gnmi_get_on_root_unsupported,json=gnmiGetOnRootUnsupported,proto3" json:"gnmi_get_on_root_unsupported,omitempty"` } func (x *Metadata_Deviations) Reset() { *x = Metadata_Deviations{} - mi := &file_metadata_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_metadata_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Metadata_Deviations) String() string { @@ -989,7 +1004,7 @@ func (*Metadata_Deviations) ProtoMessage() {} func (x *Metadata_Deviations) ProtoReflect() protoreflect.Message { mi := &file_metadata_proto_msgTypes[2] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2600,19 +2615,36 @@ func (x *Metadata_Deviations) GetGribiEncapHeaderUnsupported() bool { return false } +func (x *Metadata_Deviations) GetP4RtCapabilitiesUnsupported() bool { + if x != nil { + return x.P4RtCapabilitiesUnsupported + } + return false +} + +func (x *Metadata_Deviations) GetGnmiGetOnRootUnsupported() bool { + if x != nil { + return x.GnmiGetOnRootUnsupported + } + return false +} + type Metadata_PlatformExceptions struct { - state protoimpl.MessageState `protogen:"open.v1"` - Platform *Metadata_Platform `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"` - Deviations *Metadata_Deviations `protobuf:"bytes,2,opt,name=deviations,proto3" json:"deviations,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Platform *Metadata_Platform `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"` + Deviations *Metadata_Deviations `protobuf:"bytes,2,opt,name=deviations,proto3" json:"deviations,omitempty"` } func (x *Metadata_PlatformExceptions) Reset() { *x = Metadata_PlatformExceptions{} - mi := &file_metadata_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_metadata_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Metadata_PlatformExceptions) String() string { @@ -2623,7 +2655,7 @@ func (*Metadata_PlatformExceptions) ProtoMessage() {} func (x *Metadata_PlatformExceptions) ProtoReflect() protoreflect.Message { mi := &file_metadata_proto_msgTypes[3] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2660,7 +2692,7 @@ var file_metadata_proto_rawDesc = []byte{ 0x74, 0x69, 0x6e, 0x67, 0x1a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x6f, 0x6e, 0x64, 0x61, 0x74, 0x72, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x62, 0x65, - 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x8d, 0x01, 0x0a, 0x08, 0x4d, 0x65, 0x74, + 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xba, 0x8e, 0x01, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6c, 0x61, 0x6e, @@ -2694,7 +2726,7 @@ var file_metadata_proto_rawDesc = []byte{ 0x65, 0x67, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x73, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x67, 0x65, 0x78, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x52, 0x0e, 0x68, 0x61, 0x72, 0x64, 0x77, 0x61, 0x72, 0x65, - 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x1a, 0xea, 0x84, 0x01, 0x0a, 0x0a, 0x44, 0x65, 0x76, 0x69, + 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x1a, 0xf0, 0x85, 0x01, 0x0a, 0x0a, 0x44, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x69, 0x70, 0x76, 0x34, 0x5f, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x69, 0x70, 0x76, 0x34, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, @@ -3752,47 +3784,55 @@ var file_metadata_proto_rawDesc = []byte{ 0x61, 0x64, 0x65, 0x72, 0x5f, 0x75, 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x18, 0xf9, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1b, 0x67, 0x72, 0x69, 0x62, 0x69, 0x45, 0x6e, 0x63, 0x61, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x55, 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x64, 0x4a, 0x04, 0x08, 0x54, 0x10, 0x55, 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, - 0x4a, 0x04, 0x08, 0x1c, 0x10, 0x1d, 0x4a, 0x04, 0x08, 0x14, 0x10, 0x15, 0x4a, 0x04, 0x08, 0x5a, - 0x10, 0x5b, 0x4a, 0x04, 0x08, 0x61, 0x10, 0x62, 0x4a, 0x04, 0x08, 0x37, 0x10, 0x38, 0x4a, 0x04, - 0x08, 0x59, 0x10, 0x5a, 0x4a, 0x04, 0x08, 0x13, 0x10, 0x14, 0x4a, 0x04, 0x08, 0x24, 0x10, 0x25, - 0x4a, 0x04, 0x08, 0x23, 0x10, 0x24, 0x4a, 0x04, 0x08, 0x28, 0x10, 0x29, 0x4a, 0x06, 0x08, 0xad, - 0x01, 0x10, 0xae, 0x01, 0x1a, 0xa0, 0x01, 0x0a, 0x12, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x41, 0x0a, 0x08, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, - 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, - 0x6e, 0x67, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x50, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x47, - 0x0a, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, - 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x2e, 0x44, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0a, 0x64, 0x65, 0x76, - 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x96, 0x02, 0x0a, 0x07, 0x54, 0x65, 0x73, 0x74, - 0x62, 0x65, 0x64, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x45, 0x53, 0x54, 0x42, 0x45, 0x44, 0x5f, 0x55, - 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, - 0x54, 0x45, 0x53, 0x54, 0x42, 0x45, 0x44, 0x5f, 0x44, 0x55, 0x54, 0x10, 0x01, 0x12, 0x1a, 0x0a, - 0x16, 0x54, 0x45, 0x53, 0x54, 0x42, 0x45, 0x44, 0x5f, 0x44, 0x55, 0x54, 0x5f, 0x44, 0x55, 0x54, - 0x5f, 0x34, 0x4c, 0x49, 0x4e, 0x4b, 0x53, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x45, 0x53, - 0x54, 0x42, 0x45, 0x44, 0x5f, 0x44, 0x55, 0x54, 0x5f, 0x41, 0x54, 0x45, 0x5f, 0x32, 0x4c, 0x49, - 0x4e, 0x4b, 0x53, 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x45, 0x53, 0x54, 0x42, 0x45, 0x44, - 0x5f, 0x44, 0x55, 0x54, 0x5f, 0x41, 0x54, 0x45, 0x5f, 0x34, 0x4c, 0x49, 0x4e, 0x4b, 0x53, 0x10, - 0x04, 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x45, 0x53, 0x54, 0x42, 0x45, 0x44, 0x5f, 0x44, 0x55, 0x54, - 0x5f, 0x41, 0x54, 0x45, 0x5f, 0x39, 0x4c, 0x49, 0x4e, 0x4b, 0x53, 0x5f, 0x4c, 0x41, 0x47, 0x10, - 0x05, 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x45, 0x53, 0x54, 0x42, 0x45, 0x44, 0x5f, 0x44, 0x55, 0x54, - 0x5f, 0x44, 0x55, 0x54, 0x5f, 0x41, 0x54, 0x45, 0x5f, 0x32, 0x4c, 0x49, 0x4e, 0x4b, 0x53, 0x10, - 0x06, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x45, 0x53, 0x54, 0x42, 0x45, 0x44, 0x5f, 0x44, 0x55, 0x54, - 0x5f, 0x41, 0x54, 0x45, 0x5f, 0x38, 0x4c, 0x49, 0x4e, 0x4b, 0x53, 0x10, 0x07, 0x12, 0x15, 0x0a, - 0x11, 0x54, 0x45, 0x53, 0x54, 0x42, 0x45, 0x44, 0x5f, 0x44, 0x55, 0x54, 0x5f, 0x34, 0x30, 0x30, - 0x5a, 0x52, 0x10, 0x08, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x45, 0x53, 0x54, 0x42, 0x45, 0x44, 0x5f, - 0x44, 0x55, 0x54, 0x5f, 0x34, 0x30, 0x30, 0x5a, 0x52, 0x5f, 0x50, 0x4c, 0x55, 0x53, 0x10, 0x09, - 0x22, 0x6d, 0x0a, 0x04, 0x54, 0x61, 0x67, 0x73, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x41, 0x47, 0x53, - 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, - 0x0a, 0x10, 0x54, 0x41, 0x47, 0x53, 0x5f, 0x41, 0x47, 0x47, 0x52, 0x45, 0x47, 0x41, 0x54, 0x49, - 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x41, 0x47, 0x53, 0x5f, 0x44, 0x41, 0x54, - 0x41, 0x43, 0x45, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x45, 0x44, 0x47, 0x45, 0x10, 0x02, 0x12, 0x0d, - 0x0a, 0x09, 0x54, 0x41, 0x47, 0x53, 0x5f, 0x45, 0x44, 0x47, 0x45, 0x10, 0x03, 0x12, 0x10, 0x0a, - 0x0c, 0x54, 0x41, 0x47, 0x53, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x49, 0x54, 0x10, 0x04, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x72, 0x74, 0x65, 0x64, 0x12, 0x43, 0x0a, 0x1d, 0x70, 0x34, 0x72, 0x74, 0x5f, 0x63, 0x61, 0x70, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x5f, 0x75, 0x6e, 0x73, 0x75, 0x70, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x64, 0x18, 0xfa, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1b, 0x70, 0x34, + 0x72, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x55, 0x6e, + 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x12, 0x3f, 0x0a, 0x1c, 0x67, 0x6e, 0x6d, + 0x69, 0x5f, 0x67, 0x65, 0x74, 0x5f, 0x6f, 0x6e, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x75, 0x6e, + 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x18, 0xfb, 0x01, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x18, 0x67, 0x6e, 0x6d, 0x69, 0x47, 0x65, 0x74, 0x4f, 0x6e, 0x52, 0x6f, 0x6f, 0x74, 0x55, + 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x4a, 0x04, 0x08, 0x54, 0x10, 0x55, + 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, 0x4a, 0x04, 0x08, 0x1c, 0x10, 0x1d, 0x4a, 0x04, 0x08, 0x14, + 0x10, 0x15, 0x4a, 0x04, 0x08, 0x5a, 0x10, 0x5b, 0x4a, 0x04, 0x08, 0x61, 0x10, 0x62, 0x4a, 0x04, + 0x08, 0x37, 0x10, 0x38, 0x4a, 0x04, 0x08, 0x59, 0x10, 0x5a, 0x4a, 0x04, 0x08, 0x13, 0x10, 0x14, + 0x4a, 0x04, 0x08, 0x24, 0x10, 0x25, 0x4a, 0x04, 0x08, 0x23, 0x10, 0x24, 0x4a, 0x04, 0x08, 0x28, + 0x10, 0x29, 0x4a, 0x06, 0x08, 0xad, 0x01, 0x10, 0xae, 0x01, 0x1a, 0xa0, 0x01, 0x0a, 0x12, 0x50, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x41, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x47, 0x0a, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x96, 0x02, + 0x0a, 0x07, 0x54, 0x65, 0x73, 0x74, 0x62, 0x65, 0x64, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x45, 0x53, + 0x54, 0x42, 0x45, 0x44, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, + 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x45, 0x53, 0x54, 0x42, 0x45, 0x44, 0x5f, 0x44, 0x55, + 0x54, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x45, 0x53, 0x54, 0x42, 0x45, 0x44, 0x5f, 0x44, + 0x55, 0x54, 0x5f, 0x44, 0x55, 0x54, 0x5f, 0x34, 0x4c, 0x49, 0x4e, 0x4b, 0x53, 0x10, 0x02, 0x12, + 0x1a, 0x0a, 0x16, 0x54, 0x45, 0x53, 0x54, 0x42, 0x45, 0x44, 0x5f, 0x44, 0x55, 0x54, 0x5f, 0x41, + 0x54, 0x45, 0x5f, 0x32, 0x4c, 0x49, 0x4e, 0x4b, 0x53, 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x54, + 0x45, 0x53, 0x54, 0x42, 0x45, 0x44, 0x5f, 0x44, 0x55, 0x54, 0x5f, 0x41, 0x54, 0x45, 0x5f, 0x34, + 0x4c, 0x49, 0x4e, 0x4b, 0x53, 0x10, 0x04, 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x45, 0x53, 0x54, 0x42, + 0x45, 0x44, 0x5f, 0x44, 0x55, 0x54, 0x5f, 0x41, 0x54, 0x45, 0x5f, 0x39, 0x4c, 0x49, 0x4e, 0x4b, + 0x53, 0x5f, 0x4c, 0x41, 0x47, 0x10, 0x05, 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x45, 0x53, 0x54, 0x42, + 0x45, 0x44, 0x5f, 0x44, 0x55, 0x54, 0x5f, 0x44, 0x55, 0x54, 0x5f, 0x41, 0x54, 0x45, 0x5f, 0x32, + 0x4c, 0x49, 0x4e, 0x4b, 0x53, 0x10, 0x06, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x45, 0x53, 0x54, 0x42, + 0x45, 0x44, 0x5f, 0x44, 0x55, 0x54, 0x5f, 0x41, 0x54, 0x45, 0x5f, 0x38, 0x4c, 0x49, 0x4e, 0x4b, + 0x53, 0x10, 0x07, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x45, 0x53, 0x54, 0x42, 0x45, 0x44, 0x5f, 0x44, + 0x55, 0x54, 0x5f, 0x34, 0x30, 0x30, 0x5a, 0x52, 0x10, 0x08, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x45, + 0x53, 0x54, 0x42, 0x45, 0x44, 0x5f, 0x44, 0x55, 0x54, 0x5f, 0x34, 0x30, 0x30, 0x5a, 0x52, 0x5f, + 0x50, 0x4c, 0x55, 0x53, 0x10, 0x09, 0x22, 0x6d, 0x0a, 0x04, 0x54, 0x61, 0x67, 0x73, 0x12, 0x14, + 0x0a, 0x10, 0x54, 0x41, 0x47, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, + 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x41, 0x47, 0x53, 0x5f, 0x41, 0x47, 0x47, + 0x52, 0x45, 0x47, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x41, + 0x47, 0x53, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x43, 0x45, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x45, 0x44, + 0x47, 0x45, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x41, 0x47, 0x53, 0x5f, 0x45, 0x44, 0x47, + 0x45, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x41, 0x47, 0x53, 0x5f, 0x54, 0x52, 0x41, 0x4e, + 0x53, 0x49, 0x54, 0x10, 0x04, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3809,7 +3849,7 @@ func file_metadata_proto_rawDescGZIP() []byte { var file_metadata_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_metadata_proto_goTypes = []any{ +var file_metadata_proto_goTypes = []interface{}{ (Metadata_Testbed)(0), // 0: openconfig.testing.Metadata.Testbed (Metadata_Tags)(0), // 1: openconfig.testing.Metadata.Tags (*Metadata)(nil), // 2: openconfig.testing.Metadata @@ -3837,6 +3877,56 @@ func file_metadata_proto_init() { if File_metadata_proto != nil { return } + if !protoimpl.UnsafeEnabled { + file_metadata_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Metadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_metadata_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Metadata_Platform); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_metadata_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Metadata_Deviations); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_metadata_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Metadata_PlatformExceptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{