mirror of
https://github.com/hansjone/netx.git
synced 2026-10-19 00:43:20 +08:00
Improve partial-batch diagnostics and stop treating vpnv6 prefixes as clock noise.
List failing profile/command/reason in batch.message (including unmatched and expand_all), and require whitespace/EOL after HH:MM:SS so prefixes like 56:16:10::/64 are parsed. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
9b6452971f
commit
7b5f03ad54
4 changed files with 259 additions and 42 deletions
|
|
@ -193,7 +193,9 @@ def _skip_noise_line(line: str) -> bool:
|
|||
return True
|
||||
if low.startswith("valid ") or low.startswith("invalid "):
|
||||
return True
|
||||
if re.match(r"^\d{1,2}:\d{2}:\d{2}\b", low):
|
||||
# Clock banners like "09:30:01" — require whitespace/EOL so IPv6
|
||||
# prefixes such as "56:16:10::/64" are not treated as HH:MM:SS.
|
||||
if re.match(r"^\d{1,2}:\d{2}:\d{2}(?:\s|$)", low):
|
||||
return True
|
||||
if low.endswith("#") or "#'" in low:
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue