Debian Codegraph @

ntc_templates/templates/cisco_ios_show_route-map.textfsm

raw
1 Value Required NAME (\S+)
2 Value Required ACTION (\S+)
3 Value Required SEQ (\d+)
4 Value List MATCH_CLAUSES (.+?)
5 Value List SET_CLAUSES (.+?)
6
7 Start
8 ^route-map\s+${NAME},\s+${ACTION},\s+sequence\s+${SEQ}\s*$$
9 ^\s+Match\s+clauses -> Match
10 ^\s+Set\s+clauses -> Set
11 # Capture time-stamp if vty line has command time-stamping turned on
12 ^Load\s+for\s+
13 ^Time\s+source\s+is
14 ^.+ -> Error
15
16 Match
17 ^\s*$$
18 ^\s+Set\s+clauses -> Set
19 ^\s+Policy\s+routing
20 ^\s+${MATCH_CLAUSES}\s*$$
21 ^route-map -> Continue.Record
22 ^route-map\s+${NAME},\s+${ACTION},\s+sequence\s+${SEQ}\s*$$ -> Start
23 ^.+ -> Error
24
25 Set
26 ^\s*$$
27 ^\s+Policy\s+routing
28 ^\s+${SET_CLAUSES}\s*$$
29 ^route-map -> Continue.Record
30 ^route-map\s+${NAME},\s+${ACTION},\s+sequence\s+${SEQ}\s*$$ -> Start
31 ^.+ -> Error