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 ufm rust client #119

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

add ufm rust client #119

wants to merge 1 commit into from

Conversation

wpeng102
Copy link

UFM rust client includes a CLI and library written in rust. Currently, it supports part of UFM operations. We will add new features on demand.

@swx-jenkins3
Copy link

Can one of the admins verify this patch?

@wpeng102
Copy link
Author

wpeng102 commented Aug 4, 2023

@kedeme @lennybe @haithamwj any comment on this PR?

@lennybe
Copy link
Contributor

lennybe commented Aug 7, 2023

What about CI? at least build step, static code analysis.
you can see example in https://github.com/Mellanox/ufm_sdk_3.0/tree/main/plugins/hello_world_plugin
this folder can be copied into your plugin folder with some adaptations.
@mohfh FYI

#### *Version*
```
./ufmcli version
6.11.1-2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need hardcoded UFM version here?
can we support regex or $UFM_VERSION > 6.11.1-2 != 6.12.1-5 e.t.c.?

```
#### *Create a Partition Key*
```
./ufmcli create --pkey 5 --mtu 2 --membership full --service-level 0 --rate-limit 2.5 --guids 0011223344560200 --guids 1070fd0300176625 --guids 0011223344560201
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can GUIDs be part of external configuration file and not hardcoded ?

@@ -0,0 +1,55 @@
/*
* Copyright © 2013-2022 NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2023

@@ -0,0 +1,20 @@
/*
* Copyright © 2013-2022 NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2023

[package]
name = "ufmclient"
version = "0.1.2"
edition = "2021"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we using that old edition?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants