[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:
Simon Lin
2022-05-11 16:00:02 -07:00
committed by GitHub
parent b8f305b825
commit fcf40d7087
3 changed files with 122 additions and 3 deletions
+7 -2
View File
@@ -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'