MCPcopy Create free account
hub / github.com/F-Stack/f-stack / create_session

Function create_session

dpdk/dts/framework/remote_session/__init__.py:33–38  ·  view source on GitHub ↗
(node_config: NodeConfiguration, name: str, logger: DTSLOG)

Source from the content-addressed store, hash-verified

31
32
33def create_session(node_config: NodeConfiguration, name: str, logger: DTSLOG) -> OSSession:
34 match node_config.os:
35 case OS.linux:
36 return LinuxSession(node_config, name, logger)
37 case _:
38 raise ConfigurationError(f"Unsupported OS {node_config.os}")

Callers 2

__init__Method · 0.90
create_sessionMethod · 0.90

Calls 2

ConfigurationErrorClass · 0.90
LinuxSessionClass · 0.85

Tested by

no test coverage detected