Skip to content

netlink: xfrm, add optional field to XfrmPolicyTmpl#626

Merged
aboch merged 1 commit intovishvananda:masterfrom
cilium:encrypt-fix
Mar 24, 2021
Merged

netlink: xfrm, add optional field to XfrmPolicyTmpl#626
aboch merged 1 commit intovishvananda:masterfrom
cilium:encrypt-fix

Conversation

@joestringer
Copy link
Copy Markdown
Contributor

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

@aboch
Copy link
Copy Markdown
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 <joe@cilium.io>
Signed-off-by: Joe Stringer <joe@cilium.io>
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
@joestringer
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

@aboch
Copy link
Copy Markdown
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