Home
last modified time | relevance | path

Searched refs:nodeid (Results 1 – 17 of 17) sorted by relevance

/openthread-latest/tests/scripts/thread-cert/
Dtest_srp_register_500_services.py77 for nodeid in ROUTER_IDS:
78 TOPOLOGY[nodeid] = {
83 TOPOLOGY[SERVER]['allowlist'].append(nodeid)
85 for nodeid in FED_IDS:
86 parentid = nodeid - NUM_ROUTERS
87 TOPOLOGY[nodeid] = {
93 TOPOLOGY[parentid]['allowlist'].append(nodeid)
102 for nodeid in ROUTER_IDS:
103 yield self.nodes[nodeid]
106 for nodeid in FED_IDS:
[all …]
Dsimulator.py63 self._nodes[node.nodeid] = node
64 self.commissioning_messages[node.nodeid] = []
69 def get_messages_sent_by(self, nodeid): argument
72 def go(self, duration, nodeid=None): argument
79 for nodeid in nodeids:
80 node = self._nodes[nodeid]
89 self.commissioning_messages[nodeid].append(msg)
102 def get_messages_sent_by(self, nodeid): argument
103 messages = self._sniffer.get_messages_sent_by(nodeid).messages
104 ret = message.MessagesSet(messages, self.commissioning_messages[nodeid])
[all …]
Dsniffer_transport.py63 def send(self, data, nodeid): argument
110 def _nodeid_to_address(self, nodeid, ip_address=''): argument
113 self.BASE_PORT + (self.PORT_OFFSET * (self.MAX_NETWORK_SIZE + 1)) + nodeid,
148 def send(self, data, nodeid): argument
149 address = self._nodeid_to_address(nodeid)
156 nodeid = self._address_to_nodeid(address)
158 return bytearray(data), nodeid
Dsniffer.py88 data, nodeid = self._transport.recv(self.RECV_BUFFER_SIZE)
105 self._buckets[nodeid].put(msg)
138 def get_messages_sent_by(self, nodeid): argument
150 bucket = self._buckets[nodeid]
Ddebug.py69 def inspect_node(self, nodeid): argument
75 node = self.test_case.nodes[nodeid]
Dv1_2_test_dua_handle_address_error.py123 def _verify_dua_handle_address_error(self, nodeid, is_med=False): argument
124 dua = self.nodes[nodeid].get_addr(config.DOMAIN_PREFIX)
139 new_dua = self.nodes[nodeid].get_addr(config.DOMAIN_PREFIX)
Dnode.py67 def __init__(self, nodeid: int, backbone_network: str, **kwargs):
73 self._docker_name = config.OTBR_DOCKER_NAME_PREFIX + str(nodeid)
74 self._prepare_ot_rcp_sim(nodeid)
81 def _prepare_ot_rcp_sim(self, nodeid: int):
578 def __init__(self, nodeid, is_mtd=False, version=None, is_bbr=False, **kwargs): argument
586 'top_srcdir', '.'), sys.argv[0], nodeid)
598 self.__init_soc(nodeid)
601 self.__init_ncp_sim(nodeid, 'ftd')
603 self.__init_sim(nodeid, mode)
610 def __init_sim(self, nodeid, mode): argument
[all …]
/openthread-latest/tools/harness-simulation/posix/sniffer_sim/
Dsniffer_transport.py62 def send(self, data, nodeid): argument
107 def _nodeid_to_port(self, nodeid: int):
108 return self.BASE_PORT + (self.PORT_OFFSET * (self.MAX_NETWORK_SIZE + 1)) + nodeid
141 def send(self, data, nodeid): argument
142 address = ('127.0.0.1', self._nodeid_to_port(nodeid))
150 nodeid = self._port_to_nodeid(address[1])
152 return bytearray(data), nodeid
Dsniffer.py130 data, nodeid = self._transport.recv(self.RECV_BUFFER_SIZE, self.TIMEOUT)
138 if nodeid not in denied_nodeids:
183 for nodeid in denied_nodeids:
184 if not 1 <= nodeid <= self._max_nodes_num:
/openthread-latest/tools/otci/otci/
Dconnectors.py75 def __init__(self, proc: subprocess.Popen, nodeid: int, simulator: Simulator):
77 self.__nodeid = nodeid
111 def __init__(self, executable: str, nodeid: int, simulator: Simulator):
114 proc = subprocess.Popen(args=[executable, str(nodeid)],
120 super().__init__(proc, nodeid, simulator)
126 def __init__(self, executable: str, nodeid: int, simulator: Simulator):
135 super().__init__(proc, nodeid, simulator)
Dotci.py3029 def connect_cli_sim(executable: str, nodeid: int, simulator: Optional[Simulator] = None) -> OTCI:
3030 cli_handler = connectors.OtCliSim(executable, nodeid, simulator=simulator)
3041 def connect_ncp_sim(executable: str, nodeid: int, simulator: Optional[Simulator] = None) -> OTCI:
3042 ncp_handler = connectors.OtNcpSim(executable, nodeid, simulator=simulator)
/openthread-latest/tools/harness-simulation/posix/
Dlaunch_testbed.py93 for nodeid in nodeids:
187 nodeid = ot_nodes_num
193 nodeid += 1
195 otbr_docker.OtbrDocker(nodeid=nodeid,
228 nodeid = 1
231 … advertise_devices(s, src, ven=ven, add=addr, nodeids=range(nodeid, nodeid + number), tag=tag)
232 nodeid += number
/openthread-latest/tests/scripts/thread-cert/backbone/
Dtest_mlr_multicast_routing.py198 def _verify_multicast_routing(self, nodeid: int, ma: str, is_med=False, is_sed=False):
199 logging.info('_verify_multicast_routing: nodeid=%d, MA=%s', nodeid, ma)
204 self.nodes[nodeid].add_ipmaddr(ma)
212 self.nodes[nodeid].del_ipmaddr(ma)
Dtest_ndproxy.py129 def _test_neighbor_solicitation(self, nodeid): argument
130 dua = self.nodes[nodeid].get_ip6_address(config.ADDRESS_TYPE.DUA)
Dtest_dua_routing.py191 def _get_mliid(self, nodeid: int) -> str:
192 mleid = self.nodes[nodeid].get_ip6_address(config.ADDRESS_TYPE.ML_EID)
Dtest_dua_routing_med.py183 def _get_mliid(self, nodeid: int) -> str:
184 mleid = self.nodes[nodeid].get_ip6_address(config.ADDRESS_TYPE.ML_EID)
/openthread-latest/tools/harness-simulation/posix/otbr_sim/
Dotbr_docker.py40 …def __init__(self, nodeid: int, ot_path: str, ot_rcp_path: str, docker_image: str, docker_name: st…
41 self.nodeid = nodeid