Debian Codegraph @

ntc_templates/templates/juniper_screenos_get_route.textfsm

raw
1 Value Filldown VR (\S+)
2 Value BEST (\S+)
3 Value ID (\d+)
4 Value Required PREFIX (\S+)
5 Value OUTINTERFACE (\S+)
6 Value NEXTHOP (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
7 Value PROTOCOL (\S+)
8 Value PREF (\d+)
9 Value METRIC (\d+)
10 Value VSYS (\S+)
11
12 Start
13 # Match the VR
14 ^IPv\d\s+Dest-Routes\s+for\s+<${VR}>
15 # Match route line
16 ^${BEST}\s+${ID}\s+${PREFIX}\s+${OUTINTERFACE}\s+${NEXTHOP}\s+${PROTOCOL}\s+${PREF}\s+${METRIC}\s+${VSYS} -> Record
17 # Match table separator
18 ^-+\s*$$
19 # Match route type keys
20 ^\S+:\s+
21 # Match lines that are just space
22 ^\s+$$
23 # Match table header
24 ^\s+ID\s+IP-Prefix\s+Interface\s+Gateway\s+P\s+Pref\s+Mtr\s+Vsys\s*$$
25 # Error out if line does not match any expressions
26 ^.+ -> Error "Line not found"
27
28 EOF