---
CChipPTStatTable:
  command: show xmchip {{ instance }} pt stats
  args:
    instance: 0
  target: Null
  item: '*'
  view: CChipPTStatView

CChipPTStatView:
  regex:
    pct_wi_1: 'PCT entries used by all WI-1 streams\s+:\s?(\d+)'
    pct_wi_0: 'PCT entries used by all WI-0 streams\s+:\s?(\d+)'
    pct_fab: 'PCT entries used by all FI streams\s+:\s?(\d+)'
  eval:
    cchip-free-internal-packet-table-wan: '4096 - {{ pct_wi_1 }} + {{ pct_wi_0 }}'
    cchip-free-internal-packet-table-fabric: '4096 - {{pct_fab}}'
