Debian Codegraph @

ntc_templates/templates/cisco_ios_show_running-config_partition_route-map.textfsm

raw
1 Value Required ROUTE_MAP_NAME (\w+)
2 Value SEQUENCE (\d+)
3 Value MATCH_METRIC_VALUE (\d+)
4 Value MATCH_PREFIX_LIST (\w+)
5 Value MATCH_COMMUNITY_VALUE (\d+.*\d+|\w+.*\w+|\d+)
6 Value SET_COMMUNITY_VALUE (\d+.*\d+.*\w+|\w+.*\w+)
7 Value SET_LOCAL_PREF_VALUE (\d+)
8 Value SET_PREPEND_AS_PATH (\w+.*\w+.*\w+|\w+)
9
10 Start
11 ^route-map -> Continue.Record
12 ^route-map\s+${ROUTE_MAP_NAME}\s+permit\s+${SEQUENCE}
13 ^\smatch\smetric\s${MATCH_METRIC_VALUE}
14 ^\sset\s+community\s+${SET_COMMUNITY_VALUE}
15 ^\smatch\s+ip\s+address\s+prefix-list\s+${MATCH_PREFIX_LIST}
16 ^\sset\s+local-preference\s+${SET_LOCAL_PREF_VALUE}
17 ^\smatch\s+community\s+${MATCH_COMMUNITY_VALUE}
18 ^\sset\s+as-path\s+prepend\s+${SET_PREPEND_AS_PATH}
19 ^!
20 # Catch all unuseful raw data
21 ^(!\s*|$$|Building configuration.*|Current configuration.*|Configuration.*|end.*)
22 # Capture time-stamp if vty line has command time-stamping turned on
23 ^Load\s+for\s+
24 ^Time\s+source\s+is
25 # Error out if raw data does not match any above rules.
26 ^.* -> Error "Could not parse line:"
27
28