Debian Codegraph @

ntc_templates/templates/cisco_ios_show_vrrp_all.textfsm

raw
1 Value IFACE (\S+)
2 Value GROUP (\d+)
3 Value ADDR_FAMILY (\S+)
4 Value STATE (\w+)
5 Value STATE_DURATION (.+)
6 Value VIRTUALIP ([a-fA-F\d\.\:]+)
7 Value VIRTUAL_MAC ([a-fA-F\d\.\:]+)
8 Value ADV_INTERVAL (\S+)
9 Value PREEMPT (\w+)
10 Value PRIORITY (\d+)
11 Value PRIORITY_CONFIGURED (\d+)
12 Value TRACK_OBJ (\d+)
13 Value TRACK_STATUS (\S+)
14 Value TRACK_ACTION (\S+(\s+\S+)?)
15 Value MASTER_IP (\S+)
16 Value MASTER_PRIORITY (\S+)
17 Value MASTER_ADV_INTERVAL (\S+)
18 Value MASTER_DOWN_INTERVAL (\S+)
19
20 Start
21 ^\S+\s+-\s+Group\s+\d+.*$$ -> Continue.Record
22 ^\s*${IFACE}\s+-\s+Group\s+${GROUP}(\s+-\s+Address-Family\s+${ADDR_FAMILY})?\s*$$
23 ^\s+State is\s+${STATE}.*\s*$$
24 ^\s*State duration\s+${STATE_DURATION}\s*$$
25 ^\s+Virtual IP address is\s+${VIRTUALIP}\s*$$
26 ^\s+Virtual MAC address is\s+${VIRTUAL_MAC}\s*$$
27 ^\s+Advertisement interval is\s+${ADV_INTERVAL}
28 ^\s+Preemption\s+${PREEMPT}\s*$$
29 ^\s+Priority is\s+${PRIORITY}(\s+\((cfgd|[cC]onfigured)\s+${PRIORITY_CONFIGURED}\))?\s*$$
30 ^\s*Track object\s+${TRACK_OBJ}\s+state\s+${TRACK_STATUS}\s+${TRACK_ACTION}\s*$$
31 # ignore authentication output since later VRRP versions do not even support it
32 ^\s+Authentication\s
33 # ignoring the "local" designation since we can use the STATE value to determine who the master is
34 ^\s+Master Router is\s+${MASTER_IP}(\s+\(local\))?, priority is\s+${MASTER_PRIORITY}\s*$$
35 ^\s+Master Advertisement interval is\s+${MASTER_ADV_INTERVAL}
36 ^\s+Master Down interval is\s+${MASTER_DOWN_INTERVAL}
37 # Capture time-stamp if vty line has command time-stamping turned on
38 ^Load\s+for\s+
39 ^Time\s+source\s+is
40 ^\s*$$
41 ^. -> Error