Lines Matching refs:r1
77 r1 = wpan.Node() variable
100 r1.form("route-test")
102 r1.allowlist_node(r2)
103 r2.allowlist_node(r1)
104 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER)
114 r3.allowlist_node(r1)
115 r1.allowlist_node(r3)
145 verify(r1.get(wpan.WPAN_DAEMON_OFF_MESH_ROUTE_AUTO_ADD_ON_INTERFACE) == 'true')
146 verify(r1.get(wpan.WPAN_DAEMON_OFF_MESH_ROUTE_FILTER_SELF_AUTO_ADDED) == 'true')
152 verify_interface_routes(r1, [])
162 verify_interface_routes(r1, [(ROUTE1, LEN1, LOW_METRIC), (ROUTE2, LEN2, MEDIUM_METRIC),
178 verify_interface_routes(r1, route_list)
194 verify_interface_routes(r1, [(ROUTE1, LEN1, MEDIUM_METRIC), (ROUTE2, LEN2, LOW_METRIC)])
211 r1.set(wpan.WPAN_DAEMON_OFF_MESH_ROUTE_FILTER_SELF_AUTO_ADDED, 'false')
212 verify(r1.get(wpan.WPAN_DAEMON_OFF_MESH_ROUTE_FILTER_SELF_AUTO_ADDED) == 'false')
217 r1.add_route(ROUTE1, prefix_len=LEN1, priority=LOW_PRIORITY)
219 verify_interface_routes(r1, [(ROUTE1, LEN1, MEDIUM_METRIC), (ROUTE2, LEN2, LOW_METRIC)])
224 r1.remove_route(ROUTE1, prefix_len=LEN1)
225 r1.add_route(ROUTE1, prefix_len=LEN1, priority=MEDIUM_PRIORITY)
227 verify_interface_routes(r1, [(ROUTE2, LEN2, LOW_METRIC)])
230 r1.add_route(ROUTE2, prefix_len=LEN2, priority=MEDIUM_PRIORITY)
232 verify_interface_routes(r1, [])
235 r1.add_route(ROUTE4, prefix_len=LEN4, priority=MEDIUM_METRIC)
236 verify_interface_routes(r1, [])
240 r1.remove_route(ROUTE1, prefix_len=LEN1)
241 r1.remove_route(ROUTE2, prefix_len=LEN2)
243 verify_interface_routes(r1, [(ROUTE1, LEN1, MEDIUM_METRIC), (ROUTE2, LEN2, LOW_METRIC)])
250 r1.set(wpan.WPAN_DAEMON_OFF_MESH_ROUTE_FILTER_SELF_AUTO_ADDED, 'true')
251 verify(r1.get(wpan.WPAN_DAEMON_OFF_MESH_ROUTE_FILTER_SELF_AUTO_ADDED) == 'true')
254 r1.add_route(ROUTE1, prefix_len=LEN1, priority=LOW_PRIORITY)
256 verify_interface_routes(r1, [(ROUTE2, LEN2, LOW_METRIC)])
258 r1.remove_route(ROUTE1, prefix_len=LEN1)
260 verify_interface_routes(r1, [(ROUTE1, LEN1, MEDIUM_METRIC), (ROUTE2, LEN2, LOW_METRIC)])