From a2cec963a209786eb772b2fd5eb97652cd454d56 Mon Sep 17 00:00:00 2001 From: Midhun Somasundaran Date: Sat, 16 Nov 2024 10:27:45 -0800 Subject: [PATCH] Add thrift apis for trunk test verification Summary: As titled Differential Revision: D65797033 fbshipit-source-id: d047cf698d9f58fb15a21a7f154ec625af96f6a9 --- fboss/agent/if/agent_hw_test_ctrl.thrift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/fboss/agent/if/agent_hw_test_ctrl.thrift b/fboss/agent/if/agent_hw_test_ctrl.thrift index f3ce41a555bc2..c7c283745c6fa 100644 --- a/fboss/agent/if/agent_hw_test_ctrl.thrift +++ b/fboss/agent/if/agent_hw_test_ctrl.thrift @@ -36,6 +36,12 @@ struct PortInfo { 1: i32 loopbackMode; } +struct AggPortInfo { + 1: bool isPresent; + 2: i32 numMembers; + 3: i32 numActiveMembers; +} + service AgentHwTestCtrl { // acl utils begin i32 getDefaultAclTableNumAclEntries(); @@ -103,4 +109,8 @@ service AgentHwTestCtrl { list getPortInfo(1: list portIds); bool verifyPortLedStatus(1: i32 port, 2: bool status); bool verifyPGSettings(1: i32 port, 2: bool pfcEnabled); + + list getAggPortInfo(1: list aggPortIds); + i32 getNumAggPorts(); + bool verifyPktFromAggPort(1: i32 aggPortId); }