Debian Codegraph @

ntc_templates/templates/arista_eos_show_port-channel_summary.textfsm

raw
1 Value PORT_CHANNEL (Po\d+)
2 Value PORT_CHANNEL_STATUS (\S+)
3 Value PROTOCOL (\w+)
4 Value PROTOCOL_STATE (\S+)
5 Value List PHYS_IFACE (Et\S+)
6 Value List PHYS_IFACE_STATUS (\S+)
7
8
9 Start
10 ^\s*Flags
11 ^-+
12 ^\s+\S\s+-
13 ^Number
14 ^\s+Port-Channel\s+Protocol\s+Ports\s+$$ -> PCS
15 ^\s*$$
16 ^. -> Error
17
18
19
20 PCS
21 ^\s*Po\d+ -> Continue.Record
22 ^\s*${PORT_CHANNEL}\(${PORT_CHANNEL_STATUS}\)\s+${PROTOCOL}\(${PROTOCOL_STATE}\)\s+${PHYS_IFACE}\(${PHYS_IFACE_STATUS}\)(\s|$$) -> Continue
23 ^\s*Po\d+.+(Et.+?\(.+?\)\s){1}${PHYS_IFACE}\(${PHYS_IFACE_STATUS}\)(\s|$$) -> Continue
24 ^\s*Po\d+.+(Et.+?\(.+?\)\s){2}${PHYS_IFACE}\(${PHYS_IFACE_STATUS}\)(\s|$$) -> Continue
25 ^\s*Po\d+.+(Et.+?\(.+?\)\s){3}${PHYS_IFACE}\(${PHYS_IFACE_STATUS}\)(\s|$$) -> Continue
26 ^\s*Po\d+.+(Et.+?\(.+?\)\s){4}${PHYS_IFACE}\(${PHYS_IFACE_STATUS}\)(\s|$$) -> Continue
27 ^\s+${PHYS_IFACE}\(${PHYS_IFACE_STATUS}\)(\s|$$) -> Continue
28 ^\s+(Et.+?\(.+?\)\s){1}${PHYS_IFACE}\(${PHYS_IFACE_STATUS}\)(\s|$$) -> Continue
29 ^\s+(Et.+?\(.+?\)\s){2}${PHYS_IFACE}\(${PHYS_IFACE_STATUS}\)(\s|$$) -> Continue
30 ^\s+(Et.+?\(.+?\)\s){3}${PHYS_IFACE}\(${PHYS_IFACE_STATUS}\)(\s|$$) -> Continue
31 ^\s+(Et.+?\(.+?\)\s){4}${PHYS_IFACE}\(${PHYS_IFACE_STATUS}\)(\s|$$) -> Continue
32