Debian Codegraph @

ntc_templates/templates/cisco_ios_show_etherchannel_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 -> PortChannel
10 ^\s*$$
11
12
13
14 PortChannel
15 ^\d+ -> Continue.Record
16 ^${GROUP}\s+${PO_NAME}\(${PO_STATUS}\)\s+${PROTOCOL}\s* -> Continue
17 ^.+(-|LACP|PAgP)\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue
18 ^.+(-|LACP|PAgP)\s+[\w\.\/\(\)]+\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue
19 ^.+(-|LACP|PAgP)\s+[\w\.\/\(\)]+\s+[\w\.\/\(\)]+\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue
20 ^.+(-|LACP|PAgP)\s+[\w\.\/\(\)]+\s+[\w\.\/\(\)]+\s+[\w\.\/\(\)]+\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue
21 ^\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue
22 ^\s+[\w\.\/\(\)]+\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue
23 ^\s+[\w\.\/\(\)]+\s+[\w\.\/\(\)]+\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue
24 ^\s+[\w\.\/\(\)]+\s+[\w\.\/\(\)]+\s+[\w\.\/\(\)]+\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue
25 ^\d+
26 ^\s+
27 ^-+\++
28 ^\s*$$
29 ^(RU|SU)\s+-\s+L(2|3)\s+port-channel\s+UP\s+(s|S)tate
30 ^(P|S)/(bndl|susp)\s+-\s+(Bundled|Suspended)
31 ^. -> Error