mirror of
https://github.com/espressif/openthread.git
synced 2026-08-03 17:37:46 +00:00
[routing-manager] BR not to use P_on_mesh=0 or P_stable=0 prefixes as OMR prefixes (#7676)
This commit fixes the bug that BRs would recognize `P_on_mesh=0` or `P_stable=0` prefixes as OMR prefixes.
This commit is contained in:
@@ -1920,8 +1920,13 @@ class NodeImpl:
|
||||
return self._expect_command_output()[0]
|
||||
|
||||
def get_netdata_omr_prefixes(self):
|
||||
prefixes = [prefix.split(' ')[0] for prefix in self.get_prefixes()]
|
||||
return prefixes
|
||||
omr_prefixes = []
|
||||
for prefix in self.get_prefixes():
|
||||
prefix, flags = prefix.split()[:2]
|
||||
if 'a' in flags and 'o' in flags and 's' in flags and 'D' not in flags:
|
||||
omr_prefixes.append(prefix)
|
||||
|
||||
return omr_prefixes
|
||||
|
||||
def get_br_on_link_prefix(self):
|
||||
cmd = 'br onlinkprefix'
|
||||
|
||||
Reference in New Issue
Block a user