"adrfam": Param(int, "NVMeoF address family (0 - IPv4, 1 - IPv6)", True, 0),
"gw_group": Param(str, "NVMeoF gateway group", True, None),
"server_address": Param(str, "NVMeoF gateway address", True, None),
+ "secure": Param(bool, "Use a secure channel", True, False),
+ "verify_host_name": Param(bool,
+ "Fail if the host name doesn't match the "
+ "gateway's host name",
+ True, False),
},
)
@convert_to_model(model.RequestStatus)
trsvcid: int = 4420,
adrfam: int = 0, # IPv4,
gw_group: Optional[str] = None,
- server_address: Optional[str] = None
+ server_address: Optional[str] = None,
+ secure: Optional[bool] = False,
+ verify_host_name: Optional[bool] = False,
):
client = NVMeoFClient(
gw_group=gw_group,
traddr=traddr,
trsvcid=int(trsvcid),
adrfam=int(adrfam),
+ secure=str_to_bool(secure),
+ verify_host_name=str_to_bool(verify_host_name),
)
)
class Listener(NamedTuple):
host_name: Annotated[str, CliHeader("Host")]
trtype: Annotated[str, CliHeader("Transport")]
- traddr: Annotated[str, CliHeader("Target Address")]
+ adrfam: Annotated[int, CliHeader("Address Family")] # 0: IPv4, 1: IPv6
+ traddr: Annotated[str, CliHeader("Address")]
+ trsvcid: Annotated[int, CliHeader("Port")]
secure: Optional[bool]
active: Optional[bool]
- adrfam: Annotated[int, CliHeader("Address Family")] = 0 # 0: IPv4, 1: IPv6
- trsvcid: Annotated[int, CliHeader("Target Port")] = 4420
+ manual: Optional[bool]
class ListenerList(NamedTuple):
host_name:
description: NVMeoF hostname
type: string
+ secure:
+ default: false
+ description: Use a secure channel
+ type: boolean
server_address:
description: NVMeoF gateway address
type: string
default: 4420
description: NVMeoF transport service port
type: integer
+ verify_host_name:
+ default: false
+ description: Fail if the host name doesn't match the gateway's host
+ name
+ type: boolean
required:
- host_name
- traddr