mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 17:50:44 +08:00
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:
parent
4b38427679
commit
0dc63bb96a
4 changed files with 173 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue