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 support for get devlink resource #936

Merged
merged 2 commits into from
Jan 22, 2024

Commits on Jan 22, 2024

  1. Add ParseRouteAttrAsMap helper function

    This will allow to parse nl attributes, returning a map
    for easy access to each attribute.
    
    Signed-off-by: adrianc <[email protected]>
    adrianchiris committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    1047a30 View commit details
    Browse the repository at this point in the history
  2. Add support to get devlink resources

    - Update nl package with new netlink attribute types and consts
    - Define structs to model devlink device resources
    - Add DevlinkGetDeviceResources method to return device resources
    - Add basic test
    
    Signed-off-by: adrianc <[email protected]>
    adrianchiris committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    5dc479c View commit details
    Browse the repository at this point in the history