-
Notifications
You must be signed in to change notification settings - Fork 70
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
Provides a possible way to set interface's type of one port #252
Provides a possible way to set interface's type of one port #252
Conversation
Hi @wangyueyu64. Thanks for your PR. I'm waiting for a k8snetworkplumbingwg member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks fine. Would you please add test cases to https://github.com/k8snetworkplumbingwg/ovs-cni/blob/main/pkg/plugin/plugin_test.go covering the default type (without interface_type passed) and one for a custom type?
Thank you for your reply. I will supplement the test content as soon as possible. |
Add new test content for interface type. |
/test pull-e2e-ovs-cni |
The test fails on the CI, probably due to afxdp support not being present in a default installation of OVS. I tried it locally and it also failed. Reading https://docs.openvswitch.org/en/latest/intro/install/afxdp/, it mentions that this specific type is experimental and compiled by default. Could we change the type used in tests to one that is generally supported? To make sure that these tests can be executed on regular environments of other developers. |
@wangyueyu64 hello, this has been silent for a while. Can I help with anything regarding the tests? |
I am very sorry that I have replied to your message only now due to work reasons. I will use more general interface types as test cases, such as tap or system. I will submit it again after the modification is completed.
…---Original---
From: "Petr ***@***.***>
Date: Mon, Dec 12, 2022 20:21 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [k8snetworkplumbingwg/ovs-cni] Provides a possible way to setinterface's type of one port (PR #252)
@wangyueyu64 hello, this has been silent for a while. Can I help with anything regarding the tests?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
That's all good, don't worry about that :) |
…call func 'attachIfaceToBridge’.In order to accommodate this function, also expanded type NetConf for ovs-cni.The availability of the afxdp type interface has been verified. Signed-off-by: wangyueyu <wangyueyu@didiglobal.com>
Signed-off-by: wangyueyu <wangyueyu@didiglobal.com>
7d908f4
to
d6d1f17
Compare
The afxdp type interface content in the test file has been replaced with the interface of type system. |
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
Thanks!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: phoracek, wangyueyu64 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/release-note-none |
In the current code, only the 'internal' type which is also the defaut type of interface is available when ovs-cni create one interface for port.
I added extra content to provides a possible way of setting interface's type when cni call func 'attachIfaceToBridge’.
In order to accommodate this function, also expanded type NetConf for ovs-cni and added extra arguments to function ‘attachIfaceToBridge'.
This will allow the user to select a custom type of interface when creating a port on bridge.
Signed-off-by: wangyueyu wangyueyu@didiglobal.com
What this PR does / why we need it:
Special notes for your reviewer:
Release note: