Home
last modified time | relevance | path

Searched refs:br1 (Results 1 – 25 of 32) sorted by relevance

12

/openthread-latest/tests/toranj/cli/
Dtest-502-multi-br-leader-failure-recovery.py56 br1 = cli.Node() variable
69 br1.allowlist_node(router)
70 br1.allowlist_node(br2)
71 br1.allowlist_node(c1)
74 br2.allowlist_node(br1)
77 router.allowlist_node(br1)
82 c1.allowlist_node(br1)
89 br1.form("multi-br")
90 br2.join(br1)
91 router.join(br1)
[all …]
Dtest-501-multi-br-failure-recovery.py57 br1 = cli.Node() variable
69 leader.allowlist_node(br1)
74 br1.allowlist_node(leader)
75 br1.allowlist_node(br2)
76 br1.allowlist_node(c1)
79 br2.allowlist_node(br1)
82 c1.allowlist_node(br1)
90 br1.join(leader)
98 verify(br1.get_state() == 'router')
112 br1.srp_server_set_addr_mode('unicast')
[all …]
Dtest-503-peer-tbr-discovery.py54 br1 = cli.Node() variable
63 br1.form("peer-brs")
64 br2.join(br1)
67 verify(br1.get_state() == 'leader')
76 br1.srp_server_set_addr_mode('unicast')
77 br1.srp_server_auto_enable()
79 br1.br_init(IF_INDEX, 1)
80 br1.br_enable()
83 verify(br1.br_get_state() == 'running')
85 br1_local_omr = br1.br_get_local_omrprefix()
[all …]
Dtest-500-two-brs-two-networks.py49 br1 = cli.Node() variable
60 br1.form('net1')
61 verify(br1.get_state() == 'leader')
63 br1.br_init(IF_INDEX, 1)
64 br1.br_enable()
67 verify(br1.br_get_state() == 'running')
69 br1_local_omr = br1.br_get_local_omrprefix()
70 br1_favored_omr = br1.br_get_favored_omrprefix().split()[0]
73 br1_local_onlink = br1.br_get_local_onlinkprefix()
74 br1_favored_onlink = br1.br_get_favored_onlinkprefix().split()[0]
[all …]
Dtest-504-br-icmp-unreach-err.py56 br1 = cli.Node() variable
69 br1.form('net1')
70 verify(br1.get_state() == 'leader')
72 br1.add_prefix('1000::/64', 'paors')
73 br1.register_netdata()
75 br1.br_init(IF_INDEX, 1)
76 br1.br_enable()
78 br1.br_set_test_local_onlinkprefix('2000::/64')
81 verify(br1.br_get_state() == 'running')
83 br1_local_onlink = br1.br_get_local_onlinkprefix()
[all …]
/openthread-latest/tests/scripts/thread-cert/border_router/nat64/
Dtest_multi_border_routers.py90 br1 = self.nodes[BR1]
98 br1.start()
101 br1.nat64_set_enabled(True)
103 br1.bash("service bind9 stop")
105 self.assertEqual('leader', br1.get_state())
128 self.assertNotEqual(br1.get_br_favored_nat64_prefix(), br2.get_br_favored_nat64_prefix())
129 br1_local_nat64_prefix = br1.get_br_nat64_prefix()
134 self.assertEqual(len(br1.get_netdata_nat64_routes()), 1)
135 nat64_prefix = br1.get_netdata_nat64_routes()[0]
138 self.assertDictIncludes(br1.nat64_state, {
[all …]
/openthread-latest/tests/scripts/thread-cert/border_router/
Dtest_publish_meshcop_service.py81 br1 = self.nodes[BR1]
86 br1.set_active_dataset(updateExisting=True, network_name='ot-br1')
92 self.assertEqual(br1.get_state(), 'disabled')
95 br1.start()
97 self.assertEqual('leader', br1.get_state())
100 br1.ephemeral_key_enabled = True
101 self.assertTrue(br1.ephemeral_key_enabled)
103 self.check_meshcop_service(br1, host)
107 ephemeral_key = br1.activate_ephemeral_key_mode(lifetime)
109 self.assertEqual(br1.get_ephemeral_key_state(), 'active')
[all …]
Dtest_ephemeral_key_counters.py60 br1 = self.nodes[BR1]
62 counters = br1.get_border_agent_counters()
81 br1.set_epskc('123456789')
83 counters = br1.get_border_agent_counters()
87 br1.set_active_dataset(updateExisting=True, network_name='ot-br1')
88 br1.start()
90 self.assertEqual('leader', br1.get_state())
93 br1.set_epskc('123456789', 10)
96 counters = br1.get_border_agent_counters()
102 br1.set_epskc('123456789', 10000)
[all …]
Dtest_manual_omr_prefix.py68 br1 = self.nodes[BR_1]
71 br1.start()
73 self.assertEqual('leader', br1.get_state())
76 self.assertEqual(br1.get_netdata_omr_prefixes(), [br1.get_br_omr_prefix()])
82 self.assertEqual(br1.get_netdata_omr_prefixes(), [br1.get_br_omr_prefix()])
98 self.collect_extra_vars(BR_1_OMR_PREFIX=br1.get_br_omr_prefix())
118 br1 = self.nodes[BR_1]
128 self._assert_prefixes_equal(br1.get_netdata_omr_prefixes(), [prefix])
130 … self._assert_prefixes_equal(br1.get_netdata_omr_prefixes(), [br1.get_br_omr_prefix(), prefix])
132 self._assert_prefixes_equal(br1.get_netdata_omr_prefixes(), [br1.get_br_omr_prefix()])
[all …]
Dtest_external_route.py89 br1 = self.nodes[BR1]
95 br1.start()
97 self.assertEqual('leader', br1.get_state())
111 br1.add_route(ROUTE1)
112 br1.register_netdata()
115 netdata = br1.get_netdata()
116 br1_kernel_routes = self.get_routes_from_kernel(br1)
117 for route in self.get_routes_from_netdata(netdata, br1.get_addr16()):
128 br1.remove_route(ROUTE1)
129 br1.register_netdata()
[all …]
Dtest_multi_thread_networks.py90 br1 = self.nodes[BR1]
95 br1.start()
97 self.assertEqual('leader', br1.get_state())
116 logging.info("BR1 addrs: %r", br1.get_addrs())
121 self.assertTrue(len(br1.get_netdata_omr_prefixes()) == 1)
126 br1_omr_prefix = br1.get_br_omr_prefix()
133 self.assertEqual(br1.get_netdata_non_nat64_routes(), ['fc00::/7'])
142 self.verify_border_routing_counters(br1, {'inbound_unicast': 1, 'outbound_unicast': 1})
145 self.verify_border_routing_counters(br1, {'inbound_unicast': 1, 'outbound_unicast': 1})
147 self.assertGreater(br1.get_border_routing_counters()['ra_rx'], 0)
[all …]
Dtest_manual_address.py70 br1 = self.nodes[BR_1]
73 br1.start()
75 self.assertEqual('leader', br1.get_state())
76 self.assertTrue(br1.is_primary_backbone_router)
83 br1.add_prefix(PREFIX, flags='po', prf='med')
84 br1.register_netdata()
88 br1.add_ipaddr(GUA_1)
92 self.assertTrue(br1.ping(GUA_2))
Dtest_trel_connectivity.py100 br1 = self.nodes[BR1]
107 if br1.is_trel_enabled() is None:
110 if br1.is_trel_enabled() == False:
111 br1.enable_trel()
116 br1.start()
117 self.wait_node_state(br1, 'leader', 10)
141 self.assertTrue(br1.ping(router2_mleid))
146 counters = br1.get_trel_counters()
154 br1.reset_trel_counters()
155 counters = br1.get_trel_counters()
Dtest_multi_border_routers.py95 br1 = self.nodes[BR1]
104 br1.start()
106 self.assertEqual('leader', br1.get_state())
129 logging.info("BR1 addrs: %r", br1.get_addrs())
135 self.assertEqual(len(br1.get_netdata_omr_prefixes()), 1)
140 br1_omr_prefix = br1.get_br_omr_prefix()
141 self.assertEqual(br1_omr_prefix, br1.get_netdata_omr_prefixes()[0])
144 self.assertEqual(len(br1.get_netdata_non_nat64_routes()), 2)
149 br1_on_link_prefix = br1.get_br_on_link_prefix()
151 self.assertEqual(len(br1.get_ip6_address(config.ADDRESS_TYPE.OMR)), 1)
[all …]
Dtest_mdns_restart.py93 br1 = self.nodes[BR1]
102 br1.start()
104 self.assertEqual('leader', br1.get_state())
118 br1.srp_server_set_enabled(True)
119 br1.srp_server_set_lease_range(LEASE, LEASE, KEY_LEASE, KEY_LEASE)
123 self.assertEqual(br1.srp_server_get_state(), 'running')
145 br1.stop_mdns_service()
146 br1.start_mdns_service()
154 ed1.dns_set_config(br1.get_ip6_address(config.ADDRESS_TYPE.ML_EID))
163 ed2.dns_set_config(br1.get_ip6_address(config.ADDRESS_TYPE.ML_EID))
Dtest_multi_ail.py81 br1: OtbrNode = self.nodes[self.BR1]
86 for br in [br1, br2, br3]:
91 br1_infra_ip_addr = br1.bash(IPV4_CIDR_ADDR_CMD)
104 br1_mleid = br1.get_ip6_address(config.ADDRESS_TYPE.ML_EID)
108 self.assertTrue(br1.ping(br2_mleid))
109 self.assertTrue(br1.ping(br3_mleid))
116 br1_onlink_ula = br1.get_ip6_address(config.ADDRESS_TYPE.ONLINK_ULA)[0]
120 self.assertFalse(br1.ping(br2_onlink_ula, backbone=True))
121 self.assertFalse(br1.ping(br3_onlink_ula, backbone=True))
Dtest_firewall.py85 br1 = self.nodes[BR1]
86 self.br1 = br1
91 br1.start()
93 self.assertEqual('leader', br1.get_state())
94 br1.set_log_level(5)
103 br1.set_domain_prefix(config.DOMAIN_PREFIX, 'prosD')
104 br1.register_netdata()
159 gateway=br1.get_ip6_address(config.ADDRESS_TYPE.BACKBONE_GUA)))
166 gateway=br1.get_ip6_address(config.ADDRESS_TYPE.BACKBONE_GUA)))
173 gateway=br1.get_ip6_address(config.ADDRESS_TYPE.BACKBONE_GUA)))
[all …]
Dtest_on_link_prefix.py105 br1 = self.nodes[BR1]
114 br1.start()
116 self.assertEqual('leader', br1.get_state())
125 logging.info("BR1 addrs: %r", br1.get_addrs())
129 self.assertEqual(len(br1.get_netdata_non_nat64_routes()), 1)
150 logging.info("BR1 addrs: %r", br1.get_addrs())
156 self.assertTrue(len(br1.get_netdata_omr_prefixes()) == 1)
161 br1_omr_prefix = br1.get_br_omr_prefix()
169 self.assertEqual(len(br1.get_netdata_non_nat64_routes()), 1)
Dtest_manual_maddress.py74 br1 = self.nodes[BR_1]
78 br1.start()
80 self.assertEqual('leader', br1.get_state())
81 self.assertTrue(br1.is_primary_backbone_router)
Dtest_end_device_udp_reachability.py77 br1 = self.nodes[BR1]
84 br1.start()
86 self.assertEqual('leader', br1.get_state())
87 br1.udp_start("::", PORT, bind_unspecified=True)
/openthread-latest/tests/scripts/thread-cert/
Dtest_br_upgrade_router_role.py86 br1 = self.nodes[BR1]
93 for node in [leader, router, br1, br2, br3]:
111 br1.start()
115 self.assertEqual(br1.get_state(), 'child')
123 br1.add_route('2001:dead:beef:cafe::/64', stable=True)
124 br1.register_netdata()
126 self.assertEqual(br1.get_state(), 'router')
150 br1.remove_route('2001:dead:beef:cafe::/64')
151 br1.register_netdata()
153 self.assertEqual(br1.get_state(), 'router')
/openthread-latest/tests/scripts/thread-cert/border_router/MATN/
DMATN_15_ChangeOfPrimaryBBRTriggersRegistration.py102 br1 = self.nodes[BR_1]
107 br1.set_backbone_router(reg_delay=REG_DELAY, mlr_timeout=consts.MLR_TIMEOUT_MIN)
108 br1.start()
110 self.assertEqual('leader', br1.get_state())
111 self.assertTrue(br1.is_primary_backbone_router)
133 br1.disable_backbone_router()
134 br1.thread_stop()
135 br1.interface_down()
139 self.assertEqual('disabled', br1.get_state())
140 self.assertFalse(br1.is_primary_backbone_router)
DMATN_09_DefaultBRMulticastForwarding.py85 br1 = self.nodes[BR_1]
89 br1.start()
91 self.assertEqual('leader', br1.get_state())
92 self.assertTrue(br1.is_primary_backbone_router)
109 br1.disable_backbone_router()
110 br1.thread_stop()
111 br1.interface_down()
116 self.assertEqual('disabled', br1.get_state())
119 self.assertFalse(br1.is_primary_backbone_router)
DMATN_16_LargeNumberOfMulticastGroupSubscriptionsToBBR.py88 br1 = self.nodes[BR_1]
92 br1.set_backbone_router(reg_delay=REG_DELAY, mlr_timeout=consts.MLR_TIMEOUT_MIN)
93 br1.start()
95 self.assertEqual('leader', br1.get_state())
96 self.assertTrue(br1.is_primary_backbone_router)
DMATN_04_MulticastListenerTimeout.py90 br1 = self.nodes[BR_1]
95 br1.set_backbone_router(reg_delay=REG_DELAY, mlr_timeout=consts.MLR_TIMEOUT_MIN)
96 br1.start()
98 self.assertEqual('leader', br1.get_state())
99 self.assertTrue(br1.is_primary_backbone_router)

12