Debian Codegraph @

ntc_templates/templates/cisco_ios_show_port-security_interface_interface.textfsm

raw
1 Value PORT_SECURITY (\w+)
2 Value PORT_STATUS (\S+)
3 Value VIOLATION_MODE ([Pp]rotect|[Rr]estrict|[Ss]hutdown)
4 Value AGING_TIME (\d{1,4}\smins)
5 Value AGING_TYPE ([Aa]bsolute|[Ii]nactivity)
6 Value SS_ADDR_AGING (\w+)
7 Value MAX_MAC_ADDRS (\d+)
8 Value TOTAL_MAC_ADDRS (\d+)
9 Value CONFIG_MAC_ADDRS (\d+)
10 Value STICKY_MAC_ADDRS (\d+)
11 Value LAST_SRC_MAC_ADDR_VLAN (\w.+:\d+)
12 Value VIOLATION_COUNT (\d+)
13
14 Start
15 ^Port Security\s+:\s+${PORT_SECURITY}
16 ^Port Status\s+:\s+${PORT_STATUS}
17 ^Violation Mode\s+:\s+${VIOLATION_MODE}
18 ^Aging Time\s+:\s+${AGING_TIME}
19 ^Aging Type\s+:\s+${AGING_TYPE}
20 ^SecureStatic Address Aging\s+:\s+${SS_ADDR_AGING}
21 ^Maximum MAC Addresses\s+:\s+${MAX_MAC_ADDRS}
22 ^Total MAC Addresses\s+:\s+${TOTAL_MAC_ADDRS}
23 ^Configured MAC Addresses\s+:\s+${CONFIG_MAC_ADDRS}
24 ^Sticky MAC Addresses\s+:\s+${STICKY_MAC_ADDRS}
25 ^Last Source Address:Vlan\s+:\s+${LAST_SRC_MAC_ADDR_VLAN}
26 ^Security Violation Count\s+:\s+${VIOLATION_COUNT}
27 ^\s*$$
28 ^. -> Error