MCPcopy Create free account
hub / github.com/OpenSN-Library/OpenSN-Library / __init__

Method __init__

TopoConfigurators/opensn/model/node.py:4–13  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2class Node:
3
4 def __init__(self) -> None:
5 self.node_index: int = 0
6 self.free_instance: int = 0
7 self.is_master_node: bool = False
8 self.l_3_addr_v_4: bytes = b''
9 self.l_3_addr_v_6: bytes = b''
10 self.l_2_addr: bytes = b''
11 self.ns_instance_map: dict[str,str] = {}
12 self.ns_link_map: dict[str,str] = {}
13 self.node_link_device_info: dict[str,int] = {}
14
15def node_from_json(seq: str) -> None:
16 node = Node()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected