Split ZTE L2VPN MAC outgoing into pw/AC/SID fields and skip separator rows.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-21 14:34:43 +08:00
parent 4b38427679
commit 0dc63bb96a
4 changed files with 173 additions and 22 deletions

View file

@ -1,4 +1,4 @@
Value MAC (\S+)
Value MAC ([0-9A-Fa-f]{4}\.[0-9A-Fa-f]{4}\.[0-9A-Fa-f]{4})
Value VPN (\S+)
Value VLAN (\S+)
Value OUTGOING (.*)
@ -13,6 +13,7 @@ Start
Entries
^${MAC}\s+${VPN}\s+${VLAN}\s+${OUTGOING}\s+${ATTRIBUTE}\s*$$ -> Record
^-+(\s+-+)*\s*$$
^\s*$$
^\S+\s*#\s*$$ -> End
^.*#\s*$$ -> End