Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add in/out interfaces in the metadata of dumped packets #94

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

saushew
Copy link
Collaborator

@saushew saushew commented Jan 18, 2024

No description provided.

@saushew saushew requested a review from taitov as a code owner January 18, 2024 10:50
@saushew saushew force-pushed the dump-ifaces-ids-mapping branch from c6b0f68 to e5c3da7 Compare January 19, 2024 14:27
@@ -13,7 +13,7 @@
namespace show
{

void physicalPort()
inline void physicalPort()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing: Function 'physicalPort' defined in a header file; function definitions in header files can lead to ODR violations

common/icp.h Outdated
@@ -898,6 +899,12 @@ using response = std::tuple<unsigned int, ///< major
std::string>; ///< custom
}

namespace convert
{
using response = std::map<unsigned int, ///< id
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

std::vector<std::tuple<>> - more effective in this place

cli/show.h Outdated
@@ -850,4 +850,26 @@ void shm_info()
table.print();
}

namespace convert
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe move to convert.h or something?

cli/show.h Outdated
inline void logical_module()
{
interface::controlPlane controlPlane;
const auto response = controlPlane.convert_logical_module();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe use this signature: controlPlane.convert("logical_module");?

@saushew saushew force-pushed the dump-ifaces-ids-mapping branch from e5c3da7 to 3729dd3 Compare January 23, 2024 15:03
@saushew saushew force-pushed the dump-ifaces-ids-mapping branch from 3729dd3 to a062002 Compare January 23, 2024 15:06
@saushew saushew merged commit 3f08381 into main Jan 23, 2024
8 checks passed
@saushew saushew deleted the dump-ifaces-ids-mapping branch January 23, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants