[routing-manager] set SNAC Router Flag in emitted RA (#10695)

This commit updates the `RouteingManager` to set the newly
allocated "SNAC Router Flag" (bit 6) in emitted RA messages from
Thread BR. The flag is also parsed and tracked in received RA
messages.

This replaces the previous model where an experimental flag bit
in "Flags Extension Option" indicated a "stub router". This commit
also removes the `STUB_ROUTER_FLAG_IN_EMITTED_RA_ENABLE` confg
(no longer optional/experimental) and renames `mStubRouterFlag` to
`mSnacRouterFlag`.
This commit is contained in:
Abtin Keshavarzian
2024-09-16 13:33:32 -07:00
committed by GitHub
parent 5f74baa2ea
commit 67b8f5c821
13 changed files with 84 additions and 169 deletions
+2 -2
View File
@@ -2286,8 +2286,8 @@ class NodeImpl:
def get_br_routers(self) -> List[str]:
# Example output of `br routers` command:
# fe80:0:0:0:42:acff:fe14:3 (M:0 O:0 Stub:1) ms-since-rx:144160 reachable:yes age:00:17:36 (peer BR)
# fe80:0:0:0:42:acff:fe14:2 (M:0 O:0 Stub:1) ms-since-rx:45179 reachable:yes age:00:17:36
# fe80:0:0:0:42:acff:fe14:3 (M:0 O:0 S:1) ms-since-rx:144160 reachable:yes age:00:17:36 (peer BR)
# fe80:0:0:0:42:acff:fe14:2 (M:0 O:0 S:1) ms-since-rx:45179 reachable:yes age:00:17:36
# Done
self.send_command('br routers')
return self._expect_command_output()