Skip to content

Commit

Permalink
fix simpler regex
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Bear <[email protected]>
  • Loading branch information
caribouHY and mjbear authored Jan 14, 2025
1 parent 650e4a8 commit 4e33210
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ntc_templates/templates/fsas_sir_show_ip_route.textfsm
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
Value FLAG ([\*X])
Value FLAG (\S)
Value PROTOCOL (\w+)
Value NETWORK (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
Value PREFIX_LENGTH (\d{1,2})
Value NETWORK (\S+)
Value PREFIX_LENGTH (\d+)
Value GATEWAY (\S+)
Value DISTANCE (\d+)
Value UPTIME (\S+)
Value INTERFACE (\w+)

Start
^FP\s+Destination\/Mask
^[-\s]+$$
^(\s|${FLAG})${PROTOCOL}\s+${NETWORK}\/${PREFIX_LENGTH}\s+${GATEWAY}\s+${DISTANCE}\s+${UPTIME}\s+${INTERFACE}\s*$$ -> Record
^---\s+
^\s*${FLAG}?${PROTOCOL}\s+${NETWORK}\/${PREFIX_LENGTH}\s+${GATEWAY}\s+${DISTANCE}\s+${UPTIME}\s+${INTERFACE}\s*$$ -> Record
^\s*$$
^. -> Error

0 comments on commit 4e33210

Please sign in to comment.