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

Netavark add ipvlan support #1390

Merged
merged 2 commits into from
Mar 31, 2023

Conversation

Luap99
Copy link
Member

@Luap99 Luap99 commented Mar 31, 2023

libnetwork/netavark: combine ipvlan macvlan code

Remove the code duplication and share some code between the ipvlan and
macvlan config creation.

Also fixes a problem with the macvlan dhcp selection, we have to set the
driver to dhcp if it is unset and no subnets are given.
Ipvlan does not support DHCP because the interfaces share the same mac
address.

Added tests for both the mcvlan dhcp selection and the ipvlan creation.

Fixes containers/podman#17630

M1cha and others added 2 commits March 31, 2023 14:35
Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
Remove the code duplication and share some code between the ipvlan and
macvlan config creation.

Also fixes a problem with the macvlan dhcp selection, we have to set the
driver to dhcp if it is unset and no subnets are given.
Ipvlan does not support DHCP because the interfaces share the same mac
address.

Added tests for both the mcvlan dhcp selection and the ipvlan creation.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 31, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Luap99
Copy link
Member Author

Luap99 commented Mar 31, 2023

@M1cha FYI, I took over your commit.
@baude @mheon PTAL

@baude
Copy link
Member

baude commented Mar 31, 2023

LGTM

@mheon
Copy link
Member

mheon commented Mar 31, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Mar 31, 2023
@openshift-merge-robot openshift-merge-robot merged commit a0cf73f into containers:main Mar 31, 2023
@Luap99 Luap99 deleted the netavark-ipvlan branch March 31, 2023 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

podman can't use the netavark ipvlan driver
5 participants