Skip to content

Commit

Permalink
fix(storage/nvme): use trtype for controller
Browse files Browse the repository at this point in the history
Signed-off-by: Artsiom Koltun <[email protected]>
  • Loading branch information
artek-koltun authored and glimchb committed Nov 29, 2023
1 parent 91579e3 commit 1a0845d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydpu/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def create(self, address):
nvme_controller_id=str(self.id),
nvme_controller=frontend_nvme_pb2.NvmeController(
spec=frontend_nvme_pb2.NvmeControllerSpec(
trtype=opicommon_pb2.NVME_TRANSPORT_PCIE,
pcie_id=opicommon_pb2.PciEndpoint(
physical_function=wrappers_pb2.Int32Value(
value=self.pf
Expand Down Expand Up @@ -288,7 +289,6 @@ def update(self, address):
nvme_namespace=frontend_nvme_pb2.NvmeNamespace(
name=self.fullname,
spec=frontend_nvme_pb2.NvmeNamespaceSpec(
trtype=opicommon_pb2.NVME_TRANSPORT_PCIE,
volume_name_ref="Malloc1",
uuid=uuid_pb2.Uuid(
value="1b4e28ba-2fa1-11d2-883f-b9a761bde3fb"
Expand Down

0 comments on commit 1a0845d

Please sign in to comment.