Debian Codegraph @

ntc_templates/templates/cisco_asa_show_port-channel_summary.textfsm

raw
1 Value Required GROUP (\d+)
2 Value PO_NAME (\S+)
3 Value PO_STATUS (\D+)
4 Value PROTOCOL (\S+)
5 Value List INTERFACES ([\w\.\/]+)
6 Value List INTERFACES_STATUS (\D+)
7
8 Start
9 ^Group\s+Port-channel\s+Protocol\s+Span-cluster\s+Ports -> PortChannel
10 ^\s*$$
11
12 PortChannel
13 ^\d+ -> Continue.Record
14 ^${GROUP}\s+${PO_NAME}\(${PO_STATUS}\)\s+${PROTOCOL}\s* -> Continue
15 ^.+(-|LACP|PAgP)\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue
16 ^.+(-|LACP|PAgP)\s+[\w\.\/\(\)]+\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue
17 ^.+(-|LACP|PAgP)\s+[\w\.\/\(\)]+\s+[\w\.\/\(\)]+\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue
18 ^.+(-|LACP|PAgP)\s+[\w\.\/\(\)]+\s+[\w\.\/\(\)]+\s+[\w\.\/\(\)]+\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue
19 ^\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue
20 ^\s+[\w\.\/\(\)]+\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue
21 ^\s+[\w\.\/\(\)]+\s+[\w\.\/\(\)]+\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue
22 ^\s+[\w\.\/\(\)]+\s+[\w\.\/\(\)]+\s+[\w\.\/\(\)]+\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue
23 ^\d+
24 ^\s+
25 ^-+\++
26 ^(RU|SU)\s+-\s+L(2|3)\s+port-channel\s+UP\s+(s|S)tate
27 ^(P|S)/(bndl|susp)\s+-\s+(Bundled|Suspended)
28 ^\s*$$
29 ^. -> Error
30