Skip to content

Commit

Permalink
Implement GetP4InfoManager() method (#317)
Browse files Browse the repository at this point in the history
- Added a GetP4InfoManager() method to TdiTableManager, to provide
  diagnostic access to its P4InfoManager object.

Signed-off-by: Derek Foster <derek.foster@intel.com>
  • Loading branch information
ffoulkes authored Nov 13, 2024
1 parent a43d4fc commit 233d38d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions stratum/hal/lib/tdi/tdi_table_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ class TdiTableManager {
OperationMode mode, TdiSdeInterface* tdi_sde_interface,
TdiTargetFactory& tdi_target_factory, int device);

// Returns a read-only pointer to the P4InfoManager object.
// For medicinal purposes only.
const P4InfoManager* GetP4InfoManager() const {
return p4_info_manager_.get();
}

private:
// Private constructor, we can create the instance by using `CreateInstance`
// function only.
Expand Down

0 comments on commit 233d38d

Please sign in to comment.