-
Notifications
You must be signed in to change notification settings - Fork 85
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 netavark plugin support #509
Conversation
[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 |
Hi @Luap99, happy new year. Hows the progress on this? |
@b-m-f Sorry I have a lot going on at the moment, I try to get back to this soon. I will talk with the team to see how we can proceed with your PR. |
8cdea82
to
d548fac
Compare
Can the WIP be dropped? |
I want to make sure this is not merged yet, I still need to test with c/common and podman. Also if we plan to do another release this week this should wait for the next one. |
@Luap99 should I start rebasing thr WireGuard changes onto this branch? Im also wondering what to do about my PRs in the podman and containers/common repos. |
Users can now suplly custom network drivers which will execute the netavark plugin to create the network. Netavark will execute the pluign to setup/teardown the netns. see containers/netavark#509 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
a33d6d6
to
f23b1d1
Compare
Netavark needs to get the actual list of directories from podman because users can set them in contianers.conf. Note that this change requires a netavark with containers/netavark#509 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Users can now suplly custom network drivers which will execute the netavark plugin to create the network. Netavark will execute the pluign to setup/teardown the netns. see containers/netavark#509 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Netavark needs to get the actual list of directories from podman because users can set them in contianers.conf. Note that this change requires a netavark with containers/netavark#509 To allow better backwards compat we only pass the new argument when we need. Also added the missing ipvlan driver to the supported driver list. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Add a function to move an interface in a new netns. This will be needed by the example plugin which I will add in the folloing commits. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Add a function to return the addresses for all interfaces in the namespace. This will be used by the example plugin. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Add a rust plugin trait which can be used to create plugins without any extra boilerplate code. See the following commits for an example of how to use this. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
this is great work ... LGTM thanks @Luap99 |
Create a simple netavark plugin which is used to move a host interface into the contianer interface. Use the examples make target to compile it. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Make a plugin which always errors to test failure paths. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This contains the core netavark logic to actually execute custom plugins. This adds a new --plugin-directory option which can be set multiple times to give a list of directories that will be searched for the plugin. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Plugins are allowed to log on stderr, add a small pluign to test it. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Users can now suplly custom network drivers which will execute the netavark plugin to create the network. Netavark will execute the pluign to setup/teardown the netns. see containers/netavark#509 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Netavark needs to get the actual list of directories from podman because users can set them in contianers.conf. Note that this change requires a netavark with containers/netavark#509 To allow better backwards compat we only pass the new argument when we need. Also added the missing ipvlan driver to the supported driver list. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
/lgtm Nice work. |
Add a plugin system for netavark,
check the plugin-API.md file for a description.
see commits for details