Commit Graph

172 Commits

Author SHA1 Message Date
Mateusz Maciejewski
68e8078a1e osfv_cli/src/osfv/libs/snipeit_api.py: IP exclusivity protection
CLI client-side mechanism, enforcing IP exclusivity in asset data
from Snipe-IT, covering system IP, RTE IP, Sonoff IP & PiKVM IP.
Throws DuplicatedIpException to prevent user from remote hardware
manipulation if duplicated IP entries exist.

Signed-off-by: Mateusz Maciejewski <mateusz.maciejewski@3mdeb.com>
2025-02-18 09:43:45 +01:00
Maciej Pijanowski
3702c628ea Merge pull request #103 from Dasharo/update_the_rte_commands
osfv_cli: update README.md
2025-02-11 15:19:40 +01:00
Jakub Redmerski
d54e26b653 osfv_cli: fix README.md
Add blank space before code block
2025-02-11 13:50:15 +01:00
Jakub Redmerski
55fc00a7eb osfv_cli: update README.md 2025-02-11 13:24:10 +01:00
Michał Kopeć
4ef405c7bb Merge pull request #92 from Dasharo/model-names-update
Update model names according to recent SnipeIT renamings
2025-02-06 16:00:46 +01:00
Maciej Pijanowski
a6b18bb880 pyproject.toml: bump to v0.5.10
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2025-01-30 12:57:02 +01:00
Maciej Pijanowski
e9dd4256c1 poetry: update deps
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2025-01-30 12:56:05 +01:00
Maciej Pijanowski
31fa37ce3f osfv_cli/src/osfv/cli/cli.py: fix #93
Fixes https://github.com/Dasharo/osfv-scripts/issues/93

Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2025-01-30 12:43:41 +01:00
Filip Gołaś
86ffbe8bc8 MSI PRO Z790-P DDR5.yml: Rename to MSI PRO Z790-P WIFI DDR5.yml
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2025-01-14 07:39:20 +01:00
Maciej Pijanowski
2aefa227c2 pyproject.toml: bump to v0.5.9
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
v0.5.9
2024-12-30 09:17:12 +01:00
Maciej Pijanowski
076e9dd2e1 .pre-commit-config.yaml: update
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2024-12-30 09:06:09 +01:00
Maciej Pijanowski
536f62095d osfv/cli/cli.py: drop duplicated check_out/check_in groups
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2024-12-30 09:00:42 +01:00
Piotr Król
e8391f01f7 libs/rte*: correct imports and improve exceptions handling
Signed-off-by: Piotr Król <piotr.krol@3mdeb.com>
2024-12-30 00:34:56 +01:00
Piotr Król
043dd0d007 osfv_cli/src/osfv/cli/cli.py: add support for --skip-snipeit
Without this option there is no way to setup DUT with RTE in home lab.
This commit should be first step for OSFV to allow community setup their
own DUTs and validate those.

Signed-off-by: Piotr Król <piotr.krol@3mdeb.com>
2024-12-30 00:33:28 +01:00
Piotr Król
86c4b4ea12 src/osfv/cli/cli.py: fix rte rel tgl
Use predefined states in RTE class instead of string.

Signed-off-by: Piotr Król <piotr.krol@3mdeb.com>
2024-12-30 00:31:28 +01:00
Piotr Król
75bec57193 *.py: wrap on 80 characters as it in PEP8
Signed-off-by: Piotr Król <piotr.krol@3mdeb.com>
2024-12-30 00:25:47 +01:00
Piotr Król
1407274fd1 osfv_cli/src/osfv/__init__.py: expose cli and libs for external use
Signed-off-by: Piotr Król <piotr.krol@3mdeb.com>
2024-12-29 00:20:11 +01:00
Maciej Pijanowski
36a030eb00 pyproject.toml: bump to v0.5.8
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
v0.5.8
2024-12-01 17:17:20 +01:00
Maciej Pijanowski
cb3fa7d044 osfv_cli: rte: fix rte relay states
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2024-12-01 17:17:13 +01:00
Maciej Pijanowski
aab992fdb2 pyproject.toml: bump to v0.5.7
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
v0.5.7
2024-12-01 17:02:31 +01:00
Maciej Pijanowski
c7a007efbd osfv_cli/rte: normalize on/off PSU states strings
Sonoff returns capital ON/OFF, while relay returned on/off.
We define relay strings here, so can be changed here to
unify the reponses, no matter which power control method
was used at the time.

The more proper solution would be to implement:
https://github.com/Dasharo/osfv-scripts/issues/77

Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2024-12-01 16:53:29 +01:00
Maciej Pijanowski
743891dc39 rte: add PSU commands and documentation
Somehow fixes: https://github.com/Dasharo/osfv-scripts/issues/69

I think in the end we do not need that much logic in this CLI tool, but
the PSU control was definitely missing. We provide a single interface
to control the PSU, no matter what power control (relay, Sonoff) is in
place.

It has been added and exposed to the OSFV via RF libs. The CLI tool
should not know much about the firmware behavior, such as whether
the DUT will power on when PSU is enabled, or not. This is often
configurable, even at runtime, and should be handled in test environment
instead. In many cases, the CLI tool may even operate with no firmware
at all, or with bricked DUT.

Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2024-11-30 00:01:39 +01:00
Michał Żygowski
1035355390 osfv_cli: correct the flashing power state logic
Use ACPI nomenclature to be consistent and rename OFF to S5. Both OFF
and G3 mean powered off state, however ACPI differentiates soft off
with PSU/AC active (S5) and hard off with PSU/AC inactive (G3).

Also the logic controlling the power state during flashing was
inverted. We always put the device to S5 state (PSU/AC active) before
attempting to flash. But for G3 path, the PSU/AC stayed on, while
should be turned off. All board configs have been changed to their
proper states to reflect the correct power logic.

Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2024-11-14 16:00:56 +01:00
Maciej Pijanowski
cc59d86dd6 osfv_cli/test/common/keywords.robot: fix V1410 RTE_IP
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2024-11-14 15:50:40 +01:00
Jan Prusinowski
b46aee08c3 Fixed MSI Z790 config where it couldnt be found by robot tests
Signed-off-by: Jan Prusinowski <jan.prusinowski@3mdeb.com>
2024-11-05 14:07:16 +01:00