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 ipaddress chain element #375

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

Add WithLoadSwIfIndex option to ipaddress chain element #375

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

Comments

@glazychev-art
Copy link
Contributor

Context

networkservicemesh/cmd-nse-vl3-vpp#1

Description

We are currently using ifindex.Load(...) inside ipaddress to get the swIfIndex to set the IP-address.
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