Skip to content

Commit

Permalink
[Thinkit] Test port breakout in sFlow mirror testfixure.Fix control s…
Browse files Browse the repository at this point in the history
…witch port ids for mirror tests.
  • Loading branch information
kishanps authored and VSuryaprasad-HCL committed Jan 5, 2025
1 parent c6bcf30 commit 4016191
Show file tree
Hide file tree
Showing 4 changed files with 362 additions and 69 deletions.
3 changes: 3 additions & 0 deletions tests/qos/qos_test_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ GetSchedulerPolicyWeightsByQueue(absl::string_view scheduler_policy_name,
absl::StatusOr<std::vector<std::string>>
GetStrictlyPrioritizedQueuesInDescendingOrderOfPriority(
absl::string_view scheduler_policy_name, gnmi::gNMI::StubInterface &gnmi);
// Get queues for an egress port.
absl::StatusOr<std::vector<std::string>> GetQueuesByEgressPort(
absl::string_view egress_port, gnmi::gNMI::StubInterface &gnmi);

} // namespace pins_test

Expand Down
10 changes: 10 additions & 0 deletions tests/sflow/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ cc_library(
srcs = ["sflow_test.cc"],
hdrs = ["sflow_test.h"],
deps = [
":sflow_breakout_test",
":sflow_util",
"//gutil:collections",
"//gutil:status_matchers",
Expand All @@ -31,12 +32,15 @@ cc_library(
"//lib/gnmi:gnmi_helper",
"//lib/utils:json_utils",
"//lib/validator:validator_lib",
"//p4_pdpi:ir",
"//p4_pdpi:ir_cc_proto",
"//p4_pdpi:p4_runtime_session",
"//p4_pdpi:p4_runtime_session_extras",
"//p4_pdpi:pd",
"//p4_pdpi/netaddr:ipv4_address",
"//p4_pdpi/netaddr:mac_address",
"//p4_pdpi/packetlib",
"//p4_pdpi/packetlib:packetlib_cc_proto",
"//sai_p4/instantiations/google:sai_pd_cc_proto",
"//tests:thinkit_sanity_tests",
"//tests/forwarding:group_programming_util",
Expand All @@ -51,14 +55,20 @@ cc_library(
"//thinkit:mirror_testbed",
"//thinkit:mirror_testbed_fixture",
"//thinkit:ssh_client",
"//thinkit:switch",
"//thinkit:test_environment",
"//thinkit/proto:generic_testbed_cc_proto",
"@com_github_gnmi//proto/gnmi:gnmi_cc_grpc_proto",
"@com_github_google_glog//:glog",
"@com_github_p4lang_p4runtime//:p4info_cc_proto",
"@com_github_p4lang_p4runtime//:p4runtime_cc_proto",
"@com_google_absl//absl/cleanup",
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:str_format",
"@com_google_absl//absl/synchronization",
"@com_google_absl//absl/time",
"@com_google_absl//absl/types:span",
Expand Down
Loading

0 comments on commit 4016191

Please sign in to comment.