Skip to content

Commit 7f2e191

Browse files
committed
pybind/mgr: Generate pb2 file in src/pybind/mgr/dashboard/services/proto using the protobuf file from the gateway submodule.
- Remove old gateway-proto. - Updated src/nvmeof/gateway to the latest sha-1 from devel. Signed-off-by: Paulo E. Castro <[email protected]>
1 parent 0ff89b0 commit 7f2e191

File tree

4 files changed

+4
-490
lines changed

4 files changed

+4
-490
lines changed

src/nvmeof/gateway

Submodule gateway updated 97 files

src/pybind/mgr/dashboard/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ if(WITH_MGR_DASHBOARD_FRONTEND)
1717

1818
# Required for building the dashboard grpc protos at build time
1919
set(CEPH_GRPC_VIRTUALENV ${CEPH_BUILD_VIRTUALENV}/ceph-grpc-virtualenv)
20+
set(CEPH_NVME_GATEWAY_PROTO_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/nvmeof/gateway/control/proto)
2021

2122
add_custom_command(
2223
OUTPUT ${CEPH_GRPC_VIRTUALENV}/lib/python*/site-packages/grpc_tools
@@ -28,9 +29,10 @@ if(WITH_MGR_DASHBOARD_FRONTEND)
2829
# protobuffer files generation
2930
add_custom_command(
3031
OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/services/proto/gateway_pb2.py" "${CMAKE_CURRENT_SOURCE_DIR}/services/proto/gateway_pb2_grpc.py"
32+
COMMAND cp ${CEPH_NVME_GATEWAY_PROTO_DIR}/gateway.proto dashboard/services/proto/gateway.proto
3133
COMMAND . ${CEPH_GRPC_VIRTUALENV}/bin/activate && ${CEPH_GRPC_VIRTUALENV}/bin/python -m grpc_tools.protoc --proto_path=. --python_out=. --grpc_python_out=. dashboard/services/proto/gateway.proto && deactivate
3234
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/..
33-
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/services/proto/gateway.proto ${CEPH_GRPC_VIRTUALENV}/lib/python*/site-packages/grpc_tools
35+
DEPENDS ${CEPH_NVME_GATEWAY_PROTO_DIR}/gateway.proto ${CEPH_GRPC_VIRTUALENV}/lib/python*/site-packages/grpc_tools
3436
COMMENT "proto generation for grpc deps")
3537
add_custom_target(mgr-dashboard-services-deps
3638
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/services/proto/gateway_pb2.py ${CMAKE_CURRENT_SOURCE_DIR}/services/proto/gateway_pb2_grpc.py

src/pybind/mgr/dashboard/services/proto/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)