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

Method __init__

dpdk/dts/framework/testbed_model/node.py:51–67  ·  view source on GitHub ↗
(self, node_config: NodeConfiguration)

Source from the content-addressed store, hash-verified

49 virtual_devices: list[VirtualDevice]
50
51 def __init__(self, node_config: NodeConfiguration):
52 self.config = node_config
53 self.name = node_config.name
54 self._logger = getLogger(self.name)
55 self.main_session = create_session(self.config, self.name, self._logger)
56
57 self._logger.info(f"Connected to node: {self.name}")
58
59 self._get_remote_cpus()
60 # filter the node lcores according to user config
61 self.lcores = LogicalCoreListFilter(
62 self.lcores, LogicalCoreList(self.config.lcores)
63 ).filter()
64
65 self._other_sessions = []
66 self.virtual_devices = []
67 self._init_ports()
68
69 def _init_ports(self) -> None:
70 self.ports = [Port(self.name, port_config) for port_config in self.config.ports]

Callers

nothing calls this directly

Calls 7

_get_remote_cpusMethod · 0.95
_init_portsMethod · 0.95
getLoggerFunction · 0.90
create_sessionFunction · 0.90
LogicalCoreListClass · 0.85
filterMethod · 0.45

Tested by

no test coverage detected