Skip to content

Commit

Permalink
Add thrift apis for trunk test verification
Browse files Browse the repository at this point in the history
Summary: As titled

Differential Revision: D65797033

fbshipit-source-id: d047cf698d9f58fb15a21a7f154ec625af96f6a9
  • Loading branch information
Midhun Somasundaran authored and facebook-github-bot committed Nov 16, 2024
1 parent 3ba506e commit a2cec96
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions fboss/agent/if/agent_hw_test_ctrl.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -103,4 +109,8 @@ service AgentHwTestCtrl {
list<PortInfo> getPortInfo(1: list<i32> portIds);
bool verifyPortLedStatus(1: i32 port, 2: bool status);
bool verifyPGSettings(1: i32 port, 2: bool pfcEnabled);

list<AggPortInfo> getAggPortInfo(1: list<i32> aggPortIds);
i32 getNumAggPorts();
bool verifyPktFromAggPort(1: i32 aggPortId);
}

0 comments on commit a2cec96

Please sign in to comment.