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

add netavark plugin support #509

Merged
merged 8 commits into from Apr 4, 2023
Merged

Commits on Apr 4, 2023

  1. netlink: add set_link_ns

    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>
    Luap99 committed Apr 4, 2023
    Copy the full SHA
    cc1730e View commit details
    Browse the repository at this point in the history
  2. netlink: add dump_addresses

    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>
    Luap99 committed Apr 4, 2023
    Copy the full SHA
    092b9a3 View commit details
    Browse the repository at this point in the history
  3. plugin: add simple plugin interface

    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>
    Luap99 committed Apr 4, 2023
    Copy the full SHA
    ab8156d View commit details
    Browse the repository at this point in the history
  4. add host-device example plugin

    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>
    Luap99 committed Apr 4, 2023
    Copy the full SHA
    bc35cdd View commit details
    Browse the repository at this point in the history
  5. add example error plugin

    Make a plugin which always errors to test failure paths.
    
    Signed-off-by: Paul Holzinger <pholzing@redhat.com>
    Luap99 committed Apr 4, 2023
    Copy the full SHA
    b2ffb90 View commit details
    Browse the repository at this point in the history
  6. add netavark plugin driver

    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>
    Luap99 committed Apr 4, 2023
    Copy the full SHA
    cee4d9f View commit details
    Browse the repository at this point in the history
  7. add stderr example plugin to test stderr passthrough

    Plugins are allowed to log on stderr, add a small pluign to test it.
    
    Signed-off-by: Paul Holzinger <pholzing@redhat.com>
    Luap99 committed Apr 4, 2023
    Copy the full SHA
    3ad293d View commit details
    Browse the repository at this point in the history
  8. add documentation for netavark plugins

    Signed-off-by: Paul Holzinger <pholzing@redhat.com>
    Luap99 committed Apr 4, 2023
    Copy the full SHA
    c4a216d View commit details
    Browse the repository at this point in the history