Home
last modified time | relevance | path

Searched refs:nodes (Results 1 – 25 of 196) sorted by relevance

12345678

/openthread-2.7.6/tests/scripts/thread-cert/
Dv1_2_test_backbone_router_service.py93 self.nodes[LEADER_1_1].start()
96 self.assertEqual(self.nodes[LEADER_1_1].get_state(), 'leader')
100 self.nodes[BBR_1].set_router_selection_jitter(ROUTER_SELECTION_JITTER)
101 self.nodes[BBR_1].set_bbr_registration_jitter(BBR_REGISTRATION_JITTER)
102 self.nodes[BBR_1].set_backbone_router(seqno=1)
103 self.nodes[BBR_1].start()
106 self.assertEqual(self.nodes[BBR_1].get_state(), 'router')
107 self.nodes[BBR_1].enable_backbone_router()
110 self.assertEqual(self.nodes[BBR_1].get_backbone_router_state(), 'Primary')
112 self.nodes[BBR_1].set_domain_prefix(config.DOMAIN_PREFIX)
[all …]
Dtest_anycast.py73 self.nodes[ROUTER1].start()
75 self.assertEqual(self.nodes[ROUTER1].get_state(), 'leader')
76 self.nodes[ROUTER1].udp_start('::', TEST_UDP_PORT)
79 self.nodes[i].start()
81 self.assertEqual(self.nodes[i].get_state(), 'router')
82 self.nodes[i].udp_start('::', TEST_UDP_PORT)
90 self.nodes[ROUTER2].add_prefix(TEST_PREFIX, borderRouterFlags)
91 self.nodes[ROUTER2].register_netdata()
93 print(self.nodes[ROUTER2].get_ip6_address(config.ADDRESS_TYPE.ALOC))
94 self.assertTrue(len(self.nodes[ROUTER2].get_ip6_address(config.ADDRESS_TYPE.ALOC)) == 1)
[all …]
Dtest_coaps.py54 self.nodes[LEADER].start()
56 self.assertEqual(self.nodes[LEADER].get_state(), 'leader')
58 self.nodes[ROUTER].start()
60 self.assertEqual(self.nodes[ROUTER].get_state(), 'router')
62 mleid = self.nodes[LEADER].get_ip6_address(config.ADDRESS_TYPE.ML_EID)
64 self.nodes[LEADER].coaps_start_psk('psk', 'pskIdentity')
65 self.nodes[LEADER].coaps_set_resource_path('test')
66 self.nodes[ROUTER].coaps_start_psk('psk', 'pskIdentity')
67 self.nodes[ROUTER].coaps_connect(mleid)
68 self.nodes[ROUTER].coaps_get()
[all …]
Dtest_reset.py58 self.nodes[LEADER].start()
60 self.assertEqual(self.nodes[LEADER].get_state(), 'leader')
62 self.nodes[ROUTER].start()
64 self.assertEqual(self.nodes[ROUTER].get_state(), 'router')
66 self.nodes[ED].start()
68 self.assertEqual(self.nodes[ED].get_state(), 'child')
71 … self.assertTrue(self.nodes[ED].ping(self.nodes[LEADER].get_ip6_address(config.ADDRESS_TYPE.RLOC)))
74 self.nodes[LEADER].reset()
75 self.nodes[LEADER].start()
77 self.assertEqual(self.nodes[LEADER].get_state(), 'leader')
[all …]
Dv1_2_test_csl_transmission.py55 self.nodes[SSED_1].set_csl_period(consts.CSL_DEFAULT_PERIOD)
56 self.nodes[SSED_1].set_csl_timeout(consts.CSL_DEFAULT_TIMEOUT)
58 self.nodes[SSED_1].get_csl_info()
60 self.nodes[LEADER].start()
62 self.assertEqual(self.nodes[LEADER].get_state(), 'leader')
64 self.nodes[SSED_1].start()
66 self.assertEqual(self.nodes[SSED_1].get_state(), 'child')
68 print('SSED rloc:%s' % self.nodes[SSED_1].get_rloc())
69 self.assertTrue(self.nodes[LEADER].ping(self.nodes[SSED_1].get_rloc()))
76 self.nodes[SSED_1].set_csl_channel(consts.CSL_DEFAULT_CHANNEL)
[all …]
DCert_8_2_01_JoinerRouter.py63 self.nodes[COMMISSIONER].interface_up()
64 self.nodes[COMMISSIONER].thread_start()
66 self.assertEqual(self.nodes[COMMISSIONER].get_state(), 'leader')
68 self.nodes[COMMISSIONER].commissioner_start()
70 … self.nodes[COMMISSIONER].commissioner_add_joiner(self.nodes[JOINER_ROUTER].get_eui64(), 'PSKD01')
71 self.nodes[COMMISSIONER].commissioner_add_joiner(self.nodes[JOINER].get_eui64(), 'PSKD02')
74 self.nodes[JOINER_ROUTER].interface_up()
75 self.nodes[JOINER_ROUTER].joiner_start('PSKD01')
78 self.nodes[JOINER_ROUTER].get_networkkey(),
79 self.nodes[COMMISSIONER].get_networkkey(),
[all …]
Dv1_2_test_domain_unicast_address_registration.py174 occurences, i + 1, node, self.nodes[node].get_addr64())
186 self.nodes[BBR_1].set_router_selection_jitter(ROUTER_SELECTION_JITTER)
187 self.nodes[BBR_1].set_bbr_registration_jitter(BBR_REGISTRATION_JITTER)
188 self.nodes[BBR_1].set_backbone_router(seqno=seq_num, reg_delay=BBR_REREGISTRATION_DELAY)
189 self.nodes[BBR_1].start()
192 self.assertEqual(self.nodes[BBR_1].get_state(), 'leader')
193 self.nodes[BBR_1].enable_backbone_router()
196 self.assertEqual(self.nodes[BBR_1].get_backbone_router_state(), 'Primary')
198 self.nodes[BBR_1].set_domain_prefix(config.DOMAIN_PREFIX, 'prosD')
211 self.nodes[ROUTER_1_2].set_dua_iid(DUA_IID_MANUAL1)
[all …]
Dv1_2_test_multicast_listener_registration.py131 self.nodes[BBR_1].set_router_selection_jitter(ROUTER_SELECTION_JITTER)
132 self.nodes[BBR_1].set_bbr_registration_jitter(BBR_REGISTRATION_JITTER)
134 … self.nodes[BBR_1].set_backbone_router(seqno=1, reg_delay=REREG_DELAY, mlr_timeout=MLR_TIMEOUT)
135 self.nodes[BBR_1].start()
138 self.assertEqual(self.nodes[BBR_1].get_state(), 'leader')
141 self.nodes[BBR_1].enable_backbone_router()
144 self.assertEqual(self.nodes[BBR_1].get_backbone_router_state(), 'Primary')
151 self.nodes[BBR_2].set_router_selection_jitter(ROUTER_SELECTION_JITTER)
152 self.nodes[BBR_2].set_bbr_registration_jitter(BBR_REGISTRATION_JITTER)
153 … self.nodes[BBR_2].set_backbone_router(seqno=2, reg_delay=REREG_DELAY, mlr_timeout=MLR_TIMEOUT)
[all …]
Dv1_2_test_domain_unicast_address.py158 self.nodes[BBR_1].set_router_selection_jitter(ROUTER_SELECTION_JITTER)
159 self.nodes[BBR_1].set_bbr_registration_jitter(BBR_REGISTRATION_JITTER)
160 self.nodes[BBR_1].set_backbone_router(seqno=1)
161 self.nodes[BBR_1].start()
164 self.assertEqual(self.nodes[BBR_1].get_state(), 'leader')
165 self.nodes[BBR_1].enable_backbone_router()
168 self.assertEqual(self.nodes[BBR_1].get_backbone_router_state(), 'Primary')
170 self.nodes[BBR_1].set_domain_prefix(config.DOMAIN_PREFIX, 'prosD')
178 self.nodes[ROUTER_1_1].set_router_selection_jitter(ROUTER_SELECTION_JITTER)
180 self.nodes[ROUTER_1_1].start()
[all …]
Dtest_coap_observe.py59 self.nodes[LEADER].start()
61 self.assertEqual(self.nodes[LEADER].get_state(), 'leader')
63 self.nodes[ROUTER].start()
65 self.assertEqual(self.nodes[ROUTER].get_state(), 'router')
67 mleid = self.nodes[LEADER].get_ip6_address(config.ADDRESS_TYPE.ML_EID)
69 self.nodes[LEADER].coap_start()
70 self.nodes[LEADER].coap_set_resource_path('test')
71 self.nodes[LEADER].coap_set_content('Test123')
73 self.nodes[ROUTER].coap_start()
74 response = self.nodes[ROUTER].coap_observe(mleid, 'test', con=con)
[all …]
Dtest_reed_address_solicit_rejected.py62 self.nodes[LEADER].start()
63 self.nodes[LEADER].set_router_upgrade_threshold(1)
65 self.assertEqual(self.nodes[LEADER].get_state(), 'leader')
67 self.nodes[REED].start()
69 self.assertEqual(self.nodes[REED].get_state(), 'child')
71 self.nodes[REED].add_service(SRV_0_ENT_NUMBER, SRV_0_SERVICE_DATA, SRV_0_SERVER_DATA)
72 self.nodes[REED].register_netdata()
78 self.nodes[LEADER].start()
79 self.nodes[LEADER].set_router_upgrade_threshold(1)
81 self.assertEqual(self.nodes[LEADER].get_state(), 'leader')
[all …]
Dv1_2_test_enhanced_frame_pending.py73 self.nodes[SED_1].set_timeout(CHILD_TIMEOUT)
76 self.nodes[LEADER].start()
78 self.assertEqual(self.nodes[LEADER].get_state(), 'leader')
80 self.nodes[SED_1].start()
82 self.assertEqual(self.nodes[SED_1].get_state(), 'child')
84 self.nodes[LEADER].udp_start('::', common.UDP_TEST_PORT)
85 self.nodes[SED_1].udp_start('::', common.UDP_TEST_PORT)
88 … self.assertTrue(self.nodes[SED_1].ping(self.nodes[LEADER].get_rloc(), timeout=CHILD_TIMEOUT))
93 … self.nodes[LEADER].udp_send(UDP_BYTES_COUNT, self.nodes[SED_1].get_rloc(), common.UDP_TEST_PORT)
98 self.nodes[SED_1].udp_check_rx(UDP_BYTES_COUNT)
[all …]
Dtest_on_mesh_prefix.py67 self.nodes[LEADER].start()
69 self.assertEqual(self.nodes[LEADER].get_state(), 'leader')
71 self.nodes[ROUTER].start()
73 self.assertEqual(self.nodes[ROUTER].get_state(), 'router')
75 self.nodes[ED1].start()
77 self.assertEqual(self.nodes[ED1].get_state(), 'child')
79 self.nodes[SED1].start()
81 self.assertEqual(self.nodes[SED1].get_state(), 'child')
83 self.nodes[ROUTER].add_prefix('2001:2:0:1::/64', 'paros')
84 self.nodes[ROUTER].add_prefix('2001:2:0:2::/64', 'paro')
[all …]
DCert_8_2_02_JoinerRouter.py63 self.nodes[COMMISSIONER].interface_up()
64 self.nodes[COMMISSIONER].thread_start()
66 self.assertEqual(self.nodes[COMMISSIONER].get_state(), 'leader')
68 self.nodes[COMMISSIONER].commissioner_start()
70 … self.nodes[COMMISSIONER].commissioner_add_joiner(self.nodes[JOINER_ROUTER].get_eui64(), 'PSKD01')
71 self.nodes[COMMISSIONER].commissioner_add_joiner(self.nodes[JOINER].get_eui64(), 'PSKD02')
74 self.nodes[JOINER_ROUTER].interface_up()
75 self.nodes[JOINER_ROUTER].joiner_start('PSKD01')
78 self.nodes[JOINER_ROUTER].get_networkkey(),
79 self.nodes[COMMISSIONER].get_networkkey(),
[all …]
Dv1_2_test_enhanced_keep_alive.py60 self.nodes[SED_1].set_timeout(CHILD_TIMEOUT)
61 self.nodes[SED_1].set_pollperiod(USER_POLL_PERIOD * 1000)
63 self.nodes[LEADER].start()
65 self.assertEqual(self.nodes[LEADER].get_state(), 'leader')
67 self.nodes[SED_1].start()
69 self.assertEqual(self.nodes[SED_1].get_state(), 'child')
98 msg.assertSentToNode(self.nodes[SED_1])
112 msg.assertSentToNode(self.nodes[LEADER])
124 msg.assertSentToNode(self.nodes[SED_1])
132 leader_aloc = self.nodes[LEADER].get_addr_leader_aloc()
[all …]
Dtest_dataset_updater.py68 self.nodes[LEADER].start()
70 self.assertEqual(self.nodes[LEADER].get_state(), 'leader')
72 self.nodes[ROUTER].start()
74 self.assertEqual(self.nodes[ROUTER].get_state(), 'router')
76 self.nodes[MED].start()
78 self.assertEqual(self.nodes[MED].get_state(), 'child')
80 self.nodes[SED].start()
82 self.assertEqual(self.nodes[SED].get_state(), 'child')
87 self.nodes[LEADER].start_dataset_updater(channel=12)
92 self.nodes[ROUTER].start_dataset_updater(channel=13)
[all …]
Dtest_ipv6_fragmentation.py57 self.nodes[LEADER].start()
59 self.assertEqual(self.nodes[LEADER].get_state(), 'leader')
61 self.nodes[ROUTER].start()
63 self.assertEqual(self.nodes[ROUTER].get_state(), 'router')
65 mleid_leader = self.nodes[LEADER].get_ip6_address(config.ADDRESS_TYPE.ML_EID)
66 mleid_router = self.nodes[ROUTER].get_ip6_address(config.ADDRESS_TYPE.ML_EID)
68 self.nodes[LEADER].udp_start("::", common.UDP_TEST_PORT)
69 self.nodes[ROUTER].udp_start("::", common.UDP_TEST_PORT)
71 self.nodes[LEADER].udp_send(1952, mleid_router, common.UDP_TEST_PORT)
73 self.nodes[ROUTER].udp_check_rx(1952)
[all …]
Dtest_ipv6_source_selection.py56 self.nodes[LEADER].start()
58 self.assertEqual(self.nodes[LEADER].get_state(), 'leader')
60 self.nodes[ROUTER].start()
62 self.assertEqual(self.nodes[ROUTER].get_state(), 'router')
64 leader_aloc = self.nodes[LEADER].get_addr_leader_aloc()
65 leader_mleid = self.nodes[LEADER].get_mleid()
66 leader_rloc = self.nodes[LEADER].get_rloc()
67 leader_linklocal = self.nodes[LEADER].get_linklocal()
71 router_rloc = self.nodes[ROUTER].get_rloc()
72 router_linklocal = self.nodes[ROUTER].get_linklocal()
[all …]
Dtest_router_reattach.py201 self.nodes[1].start()
203 self.assertEqual(self.nodes[1].get_state(), 'leader')
206 self.nodes[i].start()
208 self.assertEqual(self.nodes[i].get_state(), 'router')
210 self.nodes[2].reset()
211 self.nodes[2].set_router_selection_jitter(3)
212 self.nodes[2].set_router_upgrade_threshold(32)
213 self.nodes[2].set_router_downgrade_threshold(32)
215 self.nodes[2].start()
216 self.assertEqual(self.nodes[2].get_router_downgrade_threshold(), 32)
[all …]
Dv1_2_test_dua_handle_address_error.py90 self.nodes[BBR_1].set_bbr_registration_jitter(BBR_REGISTRATION_JITTER)
91 self.nodes[BBR_1].set_backbone_router(seqno=1, reg_delay=REG_DELAY)
92 self.nodes[BBR_1].start()
95 self.assertEqual(self.nodes[BBR_1].get_state(), 'leader')
96 self.nodes[BBR_1].enable_backbone_router()
98 self.assertEqual(self.nodes[BBR_1].get_backbone_router_state(), 'Primary')
100 self.nodes[BBR_1].set_domain_prefix(config.DOMAIN_PREFIX, 'prosD')
104 self.nodes[ROUTER].start()
106 self.assertEqual(self.nodes[ROUTER].get_state(), 'router')
109 self.nodes[FED].start()
[all …]
DCert_8_2_05_JoinerRouter.py89 self.nodes[COMMISSIONER].interface_up()
90 self.nodes[COMMISSIONER].thread_start()
92 self.assertEqual(self.nodes[COMMISSIONER].get_state(), 'leader')
94 self.nodes[COMMISSIONER].commissioner_set_provisioning_url(URL_1)
95 self.nodes[COMMISSIONER].commissioner_start()
97 … self.nodes[COMMISSIONER].commissioner_add_joiner(self.nodes[JOINER_ROUTER].get_eui64(), PSKD)
98 self.nodes[COMMISSIONER].commissioner_add_joiner(self.nodes[JOINER].get_eui64(), PSKD)
101 self.nodes[JOINER_ROUTER].interface_up()
102 self.nodes[JOINER_ROUTER].joiner_start(PSKD, URL_1)
105 self.nodes[JOINER_ROUTER].get_networkkey(),
[all …]
DCert_6_3_02_NetworkDataUpdate.py57 self.nodes[LEADER].start()
59 self.assertEqual(self.nodes[LEADER].get_state(), 'leader')
61 self.nodes[ED].start()
63 self.assertEqual(self.nodes[ED].get_state(), 'child')
65 self.nodes[LEADER].add_prefix('2001:2:0:1::/64', 'paros')
66 self.nodes[LEADER].register_netdata()
73 addrs = self.nodes[ED].get_addrs()
77 self.assertTrue(self.nodes[LEADER].ping(addr))
79 self.nodes[LEADER].remove_allowlist(self.nodes[ED].get_addr64())
80 self.nodes[ED].remove_allowlist(self.nodes[LEADER].get_addr64())
[all …]
/openthread-2.7.6/tests/scripts/thread-cert/backbone/
Dtest_mlr_multicast_routing.py127 self.nodes[HOST].start()
130 self.nodes[LEADER].start()
132 self.assertEqual('leader', self.nodes[LEADER].get_state())
135 self.nodes[ROUTER].start()
137 self.assertEqual('router', self.nodes[ROUTER].get_state())
140 self.nodes[PBBR].start()
142 self.assertEqual('router', self.nodes[PBBR].get_state())
143 self.nodes[PBBR].enable_backbone_router()
145 self.assertTrue(self.nodes[PBBR].is_primary_backbone_router)
146 self.nodes[PBBR].add_prefix(config.DOMAIN_PREFIX, "parosD")
[all …]
Dtest_dua_routing.py106 self.nodes[HOST].start()
109 self.nodes[PBBR].start()
111 self.assertEqual('leader', self.nodes[PBBR].get_state())
114 self.nodes[PBBR].set_backbone_router(reg_delay=REREG_DELAY, mlr_timeout=MLR_TIMEOUT)
115 self.nodes[PBBR].enable_backbone_router()
116 self.nodes[PBBR].set_domain_prefix(config.DOMAIN_PREFIX, 'prosD')
118 self.assertTrue(self.nodes[PBBR].is_primary_backbone_router)
119 self.assertIsNotNone(self.nodes[PBBR].get_ip6_address(config.ADDRESS_TYPE.DUA))
122 self.nodes[SBBR].start()
124 self.assertEqual('router', self.nodes[SBBR].get_state())
[all …]
Dbbr_5_11_01.py78 self.nodes[HOST].start()
81 self.nodes[ROUTER1].set_weight(72)
82 self.nodes[ROUTER1].start()
85 self.assertEqual('leader', self.nodes[ROUTER1].get_state())
87 self.nodes[ROUTER2].start()
89 self.assertEqual('router', self.nodes[ROUTER2].get_state())
95 self.nodes[BR_1].srp_server_set_enabled(False)
96 self.nodes[BR_1].start()
98 self.assertEqual('router', self.nodes[BR_1].get_state())
99 self.nodes[BR_1].enable_backbone_router()
[all …]

12345678