From 9dc0e5e45934a68eef605ef574cd649df834bead Mon Sep 17 00:00:00 2001 From: Tomer Haskalovitch Date: Sun, 23 Nov 2025 09:46:30 +0200 Subject: [PATCH] try two --- src/pybind/mgr/nvmeof/__init__.py | 2 ++ src/pybind/mgr/nvmeof/module.py | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 src/pybind/mgr/nvmeof/__init__.py create mode 100644 src/pybind/mgr/nvmeof/module.py diff --git a/src/pybind/mgr/nvmeof/__init__.py b/src/pybind/mgr/nvmeof/__init__.py new file mode 100644 index 00000000000..33b8e63a31c --- /dev/null +++ b/src/pybind/mgr/nvmeof/__init__.py @@ -0,0 +1,2 @@ +# flake8: noqa +from .module import NVMeoF diff --git a/src/pybind/mgr/nvmeof/module.py b/src/pybind/mgr/nvmeof/module.py new file mode 100644 index 00000000000..354cee3d58c --- /dev/null +++ b/src/pybind/mgr/nvmeof/module.py @@ -0,0 +1,9 @@ +from mgr_module import CLIReadCommand, HandleCommandResult, MgrModule, Option +from threading import Event +from typing import cast, Any, Optional, TYPE_CHECKING +import errno + +class NVMeoF(MgrModule): + @CLIReadCommand('ping') + def hello(self) -> HandleCommandResult: + return HandleCommandResult(stdout=f'pong') \ No newline at end of file -- 2.39.5