Home
last modified time | relevance | path

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

12345678910

/openthread-3.6.0/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.py56 self.nodes[SSED_1].set_csl_period(consts.CSL_DEFAULT_PERIOD)
57 self.nodes[SSED_1].set_csl_timeout(consts.CSL_DEFAULT_TIMEOUT)
59 self.nodes[SSED_1].get_csl_info()
61 self.nodes[LEADER].start()
63 self.assertEqual(self.nodes[LEADER].get_state(), 'leader')
65 self.nodes[SSED_1].start()
67 self.assertEqual(self.nodes[SSED_1].get_state(), 'child')
69 print('SSED rloc:%s' % self.nodes[SSED_1].get_rloc())
70 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.py64 self.nodes[COMMISSIONER].interface_up()
65 self.nodes[COMMISSIONER].thread_start()
67 self.assertEqual(self.nodes[COMMISSIONER].get_state(), 'leader')
69 self.nodes[COMMISSIONER].commissioner_start()
71 … self.nodes[COMMISSIONER].commissioner_add_joiner(self.nodes[JOINER_ROUTER].get_eui64(), 'PSKD01')
72 self.nodes[COMMISSIONER].commissioner_add_joiner(self.nodes[JOINER].get_eui64(), 'PSKD02')
75 self.nodes[JOINER_ROUTER].interface_up()
76 self.nodes[JOINER_ROUTER].joiner_start('PSKD01')
79 self.nodes[JOINER_ROUTER].get_networkkey(),
80 self.nodes[COMMISSIONER].get_networkkey(),
[all …]
Dv1_2_test_domain_unicast_address_registration.py174 occurrences, 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_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.py64 self.nodes[COMMISSIONER].interface_up()
65 self.nodes[COMMISSIONER].thread_start()
67 self.assertEqual(self.nodes[COMMISSIONER].get_state(), 'leader')
69 self.nodes[COMMISSIONER].commissioner_start()
71 … self.nodes[COMMISSIONER].commissioner_add_joiner(self.nodes[JOINER_ROUTER].get_eui64(), 'PSKD01')
72 self.nodes[COMMISSIONER].commissioner_add_joiner(self.nodes[JOINER].get_eui64(), 'PSKD02')
75 self.nodes[JOINER_ROUTER].interface_up()
76 self.nodes[JOINER_ROUTER].joiner_start('PSKD01')
79 self.nodes[JOINER_ROUTER].get_networkkey(),
80 self.nodes[COMMISSIONER].get_networkkey(),
[all …]
Dtest_inform_previous_parent_on_reattach.py83 self.nodes[LEADER].start()
85 self.assertEqual(self.nodes[LEADER].get_state(), 'leader')
87 self.nodes[ROUTER].start()
89 self.assertEqual(self.nodes[ROUTER].get_state(), 'router')
91 self.nodes[MED].start()
93 self.assertEqual(self.nodes[MED].get_state(), 'child')
97 self.nodes[LEADER].remove_allowlist(self.nodes[MED].get_addr64())
98 self.nodes[MED].remove_allowlist(self.nodes[LEADER].get_addr64())
100 self.nodes[ROUTER].add_allowlist(self.nodes[MED].get_addr64())
101 self.nodes[MED].add_allowlist(self.nodes[ROUTER].get_addr64())
[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_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_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.py74 self.nodes[SED_1].set_timeout(CHILD_TIMEOUT)
77 self.nodes[LEADER].start()
79 self.assertEqual(self.nodes[LEADER].get_state(), 'leader')
81 self.nodes[SED_1].start()
83 self.assertEqual(self.nodes[SED_1].get_state(), 'child')
85 self.nodes[LEADER].udp_start('::', common.UDP_TEST_PORT)
86 self.nodes[SED_1].udp_start('::', common.UDP_TEST_PORT)
89 … self.assertTrue(self.nodes[SED_1].ping(self.nodes[LEADER].get_rloc(), timeout=CHILD_TIMEOUT))
94 … self.nodes[LEADER].udp_send(UDP_BYTES_COUNT, self.nodes[SED_1].get_rloc(), common.UDP_TEST_PORT)
99 self.nodes[SED_1].udp_check_rx(UDP_BYTES_COUNT)
[all …]
Dtest_ipv6_source_selection.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 leader_aloc = self.nodes[LEADER].get_addr_leader_aloc()
66 leader_mleid = self.nodes[LEADER].get_mleid()
67 leader_rloc = self.nodes[LEADER].get_rloc()
68 leader_linklocal = self.nodes[LEADER].get_linklocal()
72 router_rloc = self.nodes[ROUTER].get_rloc()
73 router_linklocal = self.nodes[ROUTER].get_linklocal()
[all …]
DCert_8_2_05_JoinerRouter.py90 self.nodes[COMMISSIONER].interface_up()
91 self.nodes[COMMISSIONER].thread_start()
93 self.assertEqual(self.nodes[COMMISSIONER].get_state(), 'leader')
95 self.nodes[COMMISSIONER].commissioner_set_provisioning_url(URL_1)
96 self.nodes[COMMISSIONER].commissioner_start()
98 … self.nodes[COMMISSIONER].commissioner_add_joiner(self.nodes[JOINER_ROUTER].get_eui64(), PSKD)
99 self.nodes[COMMISSIONER].commissioner_add_joiner(self.nodes[JOINER].get_eui64(), PSKD)
102 self.nodes[JOINER_ROUTER].interface_up()
103 self.nodes[JOINER_ROUTER].joiner_start(PSKD, URL_1)
106 self.nodes[JOINER_ROUTER].get_networkkey(),
[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_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.py91 self.nodes[BBR_1].set_bbr_registration_jitter(BBR_REGISTRATION_JITTER)
92 self.nodes[BBR_1].set_backbone_router(seqno=1, reg_delay=REG_DELAY)
93 self.nodes[BBR_1].start()
96 self.assertEqual(self.nodes[BBR_1].get_state(), 'leader')
97 self.nodes[BBR_1].enable_backbone_router()
99 self.assertEqual(self.nodes[BBR_1].get_backbone_router_state(), 'Primary')
101 self.nodes[BBR_1].set_domain_prefix(config.DOMAIN_PREFIX, 'prosD')
105 self.nodes[ROUTER].start()
107 self.assertEqual(self.nodes[ROUTER].get_state(), 'router')
110 self.nodes[FED].start()
[all …]
DCert_9_2_10_PendingPartition.py102 self.nodes[LEADER].start()
104 self.assertEqual(self.nodes[LEADER].get_state(), 'leader')
106 self.nodes[COMMISSIONER].start()
108 self.assertEqual(self.nodes[COMMISSIONER].get_state(), 'router')
109 self.nodes[COMMISSIONER].commissioner_start()
112 self.nodes[ROUTER1].start()
114 self.assertEqual(self.nodes[ROUTER1].get_state(), 'router')
116 self.nodes[ED1].start()
118 self.assertEqual(self.nodes[ED1].get_state(), 'child')
120 self.nodes[SED1].start()
[all …]
/openthread-3.6.0/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.py108 self.nodes[HOST].start()
111 self.nodes[PBBR].start()
113 self.assertEqual('leader', self.nodes[PBBR].get_state())
116 self.nodes[PBBR].set_backbone_router(reg_delay=REREG_DELAY, mlr_timeout=MLR_TIMEOUT)
117 self.nodes[PBBR].enable_backbone_router()
118 self.nodes[PBBR].set_domain_prefix(config.DOMAIN_PREFIX, 'prosD')
120 self.assertTrue(self.nodes[PBBR].is_primary_backbone_router)
121 self.assertIsNotNone(self.nodes[PBBR].get_ip6_address(config.ADDRESS_TYPE.DUA))
124 self.nodes[SBBR].start()
126 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 …]

12345678910