File: hp_comware_display_counters_bound_interface.textfsm

package info (click to toggle)
python-ntc-templates 3.5.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,096 kB
  • sloc: python: 735; makefile: 13; sh: 2
file content (19 lines) | stat: -rw-r--r-- 519 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Value INTERFACE (\S+)
Value PACKETS_TOTAL (\d+)
Value PACKETS_BROADCAST (\d+)
Value PACKETS_MULTICAST (\d+)
Value PACKETS_ERROR (\d+)

Start
  ^\s*$$
  ^Interface\s+Total\s+\(pkts\)\s+Broadcast\s+\(pkts\)\s+Multicast\s+\(pkts\)\s+Err\s+\(pkts\) -> InterfaceTable
  ^. -> Error

InterfaceTable
  ^${INTERFACE}\s+${PACKETS_TOTAL}\s+${PACKETS_BROADCAST}\s+${PACKETS_MULTICAST}\s+${PACKETS_ERROR} -> Record
  ^\s*$$
  ^\s*Overflow -> InterfaceTableFooter
  ^. -> Error

InterfaceTableFooter
  # ignore the footer's content