Up until now, the protobuf files were all located under `python/spdk/sma/proto`. This was fine, as they were only used in SMA and we only generated python code. However, now, we would also like to to output code for other (e.g. go) languages too, so it no longer make sense to keep them under `python`. Only the protobuf files will be stored under `proto`. The autogenerated python code will remain under `python`, while the go code will be put in the `go` directory. While here, simplified the Makefile by removing a function generating rules based on a directory, because we keep all protobuf files in the same location. Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I4dcb7b33cd6f2930732f04dee62e35571b09315b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15016 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Community-CI: Mellanox Build Bot
23 lines
556 B
Protocol Buffer
23 lines
556 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package sma.nvmf_tcp;
|
|
|
|
option go_package = "spdk.io/sma/nvmf_tcp";
|
|
|
|
// Create device NVMe/TCP-specific parameters
|
|
message DeviceParameters {
|
|
// Subsystem NQN
|
|
string subnqn = 1;
|
|
// Address family ("ipv4", "ipv6")
|
|
string adrfam = 2;
|
|
// Transport address
|
|
string traddr = 3;
|
|
// Transport service ID (port number)
|
|
string trsvcid = 4;
|
|
// Allow any host to connect
|
|
bool allow_any_host = 5;
|
|
// List of host NQNs that are allowed to connect to the subsystem (if
|
|
// allow_any_host is false)
|
|
repeated string hosts = 6;
|
|
}
|