Debian Codegraph @

ntc_templates/templates/cisco_wlc_ssh_show_port_summary.textfsm

raw
1 Value PORT (\S+)
2 Value TYPE (\S+)
3 Value STP_STATUS (\S+)
4 Value ADMIN_MODE (\S+)
5 Value PHYSICAL_MODE (\w+\s?\w+)
6 Value PHYSICAL_STATUS (\w+\s?\w+)
7 Value LINK_STATUS (\S+)
8 Value LINK_TRAP (\S+)
9 Value POE (\S+(\s+\S+\s+\S+)?)
10
11 Start
12 ^\s+STP\s+Admin\s+(Physical\s+){2}\s*(Link\s*){2}\s*$$
13 ^\s*Pr\s+Type\s+Stat\s+(Mode\s+){2}\s*(Status\s+){2}\s*Trap\s+POE\s*$$
14 #
15 # Port Status and Modes (after the dashed line)
16 ^\s*[-\s]+$$ -> Port_Status
17 ^\s*$$
18 ^. -> Error
19
20 Port_Status
21 ^\s*${PORT}\s+${TYPE}\s+${STP_STATUS}\s+${ADMIN_MODE}\s+${PHYSICAL_MODE}\s+${PHYSICAL_STATUS}\s+${LINK_STATUS}\s+${LINK_TRAP}\s+${POE}\s*$$ -> Record
22 ^\s*$$
23 ^. -> Error