Skip to content

add ufm rust client#119

Open
wpeng102 wants to merge 1 commit intoMellanox:mainfrom
wpeng102:main
Open

add ufm rust client#119
wpeng102 wants to merge 1 commit intoMellanox:mainfrom
wpeng102:main

Conversation

@wpeng102
Copy link
Copy Markdown

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
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@wpeng102
Copy link
Copy Markdown
Author

wpeng102 commented Aug 4, 2023

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

@lennybe
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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?

@maor-walter
Copy link
Copy Markdown
Collaborator

[skip-ci] hpc-master migration to jenkins

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.

4 participants