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 function to retrieve all attached programIDs #105

Merged
merged 4 commits into from
Feb 17, 2025

Conversation

Pavani-Panakanti
Copy link
Contributor

Issue #, if available:
Add func to get all attached prog ids

Description of changes:
Func will go through all links which have supported filters and fetch prog ID of the filter attached. It will return list of link name to attached program ID

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Pavani-Panakanti Pavani-Panakanti requested a review from a team as a code owner February 11, 2025 02:05
@Pavani-Panakanti Pavani-Panakanti changed the title Addd function to retrieve all attached programIDs Add function to retrieve all attached programIDs Feb 11, 2025
return progId
}

func (m *bpfTc) GetAllAttachedProgIds() (map[string]int, map[string]int, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's add a test case for this function. Can be a follow up as well but let's create an followup issue and then merge this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sounds good. I think we need to add a mock too. Will try to add, if not will create a followup

Copy link
Contributor

@jayanthvn jayanthvn left a comment

Choose a reason for hiding this comment

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

lgtm, just the test case comment..

@jayanthvn
Copy link
Contributor

Can you run "go mod tidy" on the test package

@jayanthvn
Copy link
Contributor

lgtm

@jayanthvn jayanthvn merged commit d01b94e into aws:main Feb 17, 2025
2 checks passed
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