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 WithLoadSwIfIndex option to up chain element #379

Closed
glazychev-art opened this issue Sep 15, 2021 · 0 comments · Fixed by #381
Closed

Add WithLoadSwIfIndex option to up chain element #379

glazychev-art opened this issue Sep 15, 2021 · 0 comments · Fixed by #381
Assignees

Comments

@glazychev-art
Copy link
Contributor

Context

networkservicemesh/cmd-nse-vl3-vpp#1

Description

We are currently using ifindex.Load(...) inside up chain element to get the swIfIndex to up the interface.
For loopback interface we need to use loopback.Load instead of ifindex.Load

To make this possible, we need to add the option:

func WithLoadSwIfIndex(func(ctx context.Context, isClient bool) (value interface_types.InterfaceIndex, ok bool)) Option {...}
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 a pull request may close this issue.

1 participant