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

netlink: xfrm, add optional field to XfrmPolicyTmpl #626

Merged
merged 1 commit into from
Mar 24, 2021

Conversation

joestringer
Copy link
Contributor

Add optional field in XfrmPolicyTmpl to template code so users can
configure template optional values.

@aboch
Copy link
Collaborator

aboch commented Mar 16, 2021

is it possible to add or extend current UT to verify this information was passed down to kernel, for ex write it and read it back?

Add optional field in XfrmPolicyTmpl to template code so users can
configure template optional values.

Tested via:

    $ go test -exec sudo . -run XfrmPolicyWithOptional
    ok      github.com/vishvananda/netlink  0.009s

Co-authored-by: Joe Stringer <[email protected]>
Signed-off-by: Joe Stringer <[email protected]>
Signed-off-by: John Fastabend <[email protected]>
@joestringer
Copy link
Contributor Author

@aboch 👍 good call, the deserialization was missing. I've added a test and it passes:

    $ go test -exec sudo . -run XfrmPolicyWithOptional
    ok      github.com/vishvananda/netlink  0.009s

@joestringer
Copy link
Contributor Author

@aboch any update, does the new version look OK?

@aboch
Copy link
Collaborator

aboch commented Mar 24, 2021

LGTM

@aboch aboch merged commit 66fce01 into vishvananda:master Mar 24, 2021
@joestringer joestringer deleted the encrypt-fix branch March 25, 2021 00:24
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.

3 participants