Skip to content

Commit

Permalink
refactor(storage): move NvmeTransportType, NvmeAddressFamily to common
Browse files Browse the repository at this point in the history
Signed-off-by: Artsiom Koltun <[email protected]>
  • Loading branch information
artek-koltun committed Oct 2, 2023
1 parent fffa183 commit f202be7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
32 changes: 0 additions & 32 deletions storage/v1alpha1/backend_nvme_tcp.proto
Original file line number Diff line number Diff line change
Expand Up @@ -476,38 +476,6 @@ message StatsNvmePathResponse {
VolumeStats stats = 1;
}

// Transport type value options
enum NvmeTransportType {
// Transport type is not specified
NVME_TRANSPORT_TYPE_UNSPECIFIED = 0;
// Fibre channel transport type
NVME_TRANSPORT_FC = 1;
// Pcie transport type
NVME_TRANSPORT_PCIE = 2;
// RDMA transport type
NVME_TRANSPORT_RDMA = 3;
// TCP transport type
NVME_TRANSPORT_TCP = 4;
// Custom transport type
NVME_TRANSPORT_CUSTOM = 5;
}

// Address family value options
enum NvmeAddressFamily {
// Address family is not specified
NVME_ADDRESS_FAMILY_UNSPECIFIED = 0;
// IPv4 address family
NVME_ADRFAM_IPV4 = 1;
// IPv6 address family
NVME_ADRFAM_IPV6 = 2;
// InfiniBand address family
NVME_ADRFAM_IB = 3;
// Fibre channel address family
NVME_ADRFAM_FC = 4;
// Intra host address family
NVME_ADRFAM_INTRA_HOST = 5;
}

// Multipath mode value options
enum NvmeMultipath {
// Multipath mode is not specified
Expand Down
32 changes: 32 additions & 0 deletions storage/v1alpha1/opicommon.proto
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,35 @@ enum EncryptionType {
// AES XTS 256 encryption type
ENCRYPTION_TYPE_AES_XTS_256 = 6;
}

// Transport type value options
enum NvmeTransportType {
// Transport type is not specified
NVME_TRANSPORT_TYPE_UNSPECIFIED = 0;
// Fibre channel transport type
NVME_TRANSPORT_FC = 1;
// Pcie transport type
NVME_TRANSPORT_PCIE = 2;
// RDMA transport type
NVME_TRANSPORT_RDMA = 3;
// TCP transport type
NVME_TRANSPORT_TCP = 4;
// Custom transport type
NVME_TRANSPORT_CUSTOM = 5;
}

// Address family value options
enum NvmeAddressFamily {
// Address family is not specified
NVME_ADDRESS_FAMILY_UNSPECIFIED = 0;
// IPv4 address family
NVME_ADRFAM_IPV4 = 1;
// IPv6 address family
NVME_ADRFAM_IPV6 = 2;
// InfiniBand address family
NVME_ADRFAM_IB = 3;
// Fibre channel address family
NVME_ADRFAM_FC = 4;
// Intra host address family
NVME_ADRFAM_INTRA_HOST = 5;
}

0 comments on commit f202be7

Please sign in to comment.