Debian Codegraph @

ntc_templates/templates/cisco_apic_fabric_show_vlan_extended.textfsm

raw
1 Value Required VLAN_ID (\d+)
2 Value List VLAN_NAME ([\w:-]+)
3 Value List VLAN_ENCAP ([\w:-]+,?)
4 Value List VLAN_PORTS ((\S+,?\s?)+)
5 Value Filldown NODE_NUMBER (\d+)
6 Value Filldown NODE_NAME (\S+)
7
8 Start
9 ^\s*$$
10 ^.+\sfabric\s
11 ^---+$$
12 ^\s*Node\s${NODE_NUMBER}\s\(${NODE_NAME}\)
13 ^\s*VLAN\s+Name\s.+Ports.*$$ -> VLANS
14 # Capture time-stamp if vty line has command time-stamping turned on
15 ^. -> Error
16
17 VLANS
18 ^ \d+ -> Continue.Record
19 ^\s*--+\s+---
20 ^\s{0,3}${VLAN_ID}\s+${VLAN_NAME}\s+${VLAN_ENCAP}\s+${VLAN_PORTS}\s*$$
21 ^\s{4,6}${VLAN_NAME}\s+${VLAN_ENCAP}\s+${VLAN_PORTS}
22 ^\s{4,6}${VLAN_NAME}\s*$$
23 ^\s{38,40}${VLAN_ENCAP}\s*$$
24 ^\s{54}\s+${VLAN_PORTS}\s*$$
25 ^. -> Error
26
27