Debian Codegraph @

ntc_templates/templates/cisco_ios_show_lldp_neighbors_detail.textfsm

raw
1 Value LOCAL_INTERFACE (\S+)
2 Value CHASSIS_ID ([^:]+)
3 Value NEIGHBOR_PORT_ID (.*)
4 Value NEIGHBOR_INTERFACE (.*)
5 Value NEIGHBOR (.+?)
6 Value SYSTEM_DESCRIPTION (.*)
7 Value CAPABILITIES (.*)
8 Value MANAGEMENT_IP (\S+)
9 Value VLAN (\d+)
10 Value SERIAL (\S+)
11 Value MANUFACTURER (.*)
12 Value HW_REVISION (\S+)
13 Value FW_REVISION (\S+)
14 Value SW_REVISION (\S+)
15 Value MODEL (.*)
16 Value POWER_PAIR (\S+)
17 Value POWER_CLASS (\d+)
18 Value POWER_DEVICE_TYPE (\S+)
19 Value POWER_PRIORITY (\S+)
20 Value POWER_SOURCE (\S+)
21 Value POWER_REQUESTED (\d+)
22
23 Start
24 ^.*not advertised
25 ^.*Invalid input detected -> EOF
26 ^.*LLDP is not enabled -> EOF
27 ^Local\s+Intf:\s+${LOCAL_INTERFACE}\s*$$
28 ^Chassis\s+id:\s+${CHASSIS_ID}\s*$$
29 ^Port\s+id:\s+${NEIGHBOR_PORT_ID}\s*$$
30 ^Port\s+Description:\s+${NEIGHBOR_INTERFACE}\s*$$
31 ^System\s+Name(\s+-\s+not\s+advertised)\s*$$
32 ^System\s+Name:?\s*$$
33 ^System\s+Name(:\s+${NEIGHBOR})\s*$$
34 ^System\s+Description -> GetDescription
35 ^Time
36 ^System\s+Capabilities
37 ^Enabled\s+Capabilities:\s+${CAPABILITIES}\s*$$
38 ^Management\s+Addresses
39 ^\s+OID
40 ^\s+[\d+\.]{8,}
41 ^.*IP:\s+${MANAGEMENT_IP}\s*$$
42 ^Auto\s+Negotiation
43 ^Physical\s+media
44 # Removed \(\s+\) from the template - The line 'Other/unknown' would not be captured
45 # Now looks for any text beginning with any space
46 ^\s+.+\s*$$
47 ^Media\s+Attachment
48 ^\s+Inventory
49 ^\s+Capabilities
50 ^\s+Device\s+type
51 ^\s+Network\s+Policies
52 ^\s+Power\s+requirements
53 ^\s+Location
54 ^Time\s+remaining
55 ^Vlan\s+ID:\s+(?:${VLAN}|-\s+not\s+advertised)\s*$$
56 ^\s+\(\S+\)
57 ^(?:PoE|\s+Power)
58 ^\s*-+\s*$$ -> Record
59 ^Power\s+via\s+MDI -> PowerMDI
60 ^MED -> Med
61 ^\s*\^\s*
62 ^\s*Total\s+entries\s+displayed -> Record
63 ^\s*$$
64 # Capture time-stamp if vty line has command time-stamping turned on
65 ^Load\s+for\s+
66 ^Time\s+source\s+is
67 ^.*$$ -> Error
68
69 GetDescription
70 ^${SYSTEM_DESCRIPTION} -> IgnoreDescription
71
72 IgnoreDescription
73 ^Time\s+remaining -> Start
74 ^\S*
75 ^\s*$$
76 ^.* -> Error
77
78 PowerMDI
79 ^\s+Power\s+Pair:\s+${POWER_PAIR}\s*$$
80 ^\s+Power\s+Class:\s+${POWER_CLASS}\s*$$
81 ^\s+Power\s+Device\s+Type:\s+${POWER_DEVICE_TYPE}\s*$$
82 ^\s+Power\s+Source:\s+${POWER_SOURCE}\s*$$
83 ^\s+Power\s+Priority:\s+${POWER_PRIORITY}\s*$$
84 ^\s+Power\s+Requested:\s+${POWER_REQUESTED}\s+mW\s*$$
85 ^\s*$$ -> Start
86
87 Med
88 ^\s+Serial\s+number:\s+${SERIAL}\s*$$
89 ^\s+Manufacturer:\s+${MANUFACTURER}\s*$$
90 ^\s+Model:\s+${MODEL}\s*$$
91 ^\s+H/W revision:\s+${HW_REVISION}\s*$$
92 ^\s+F/W revision:\s+${FW_REVISION}\s*$$
93 ^\s+S/W revision:\s+${SW_REVISION}\s*$$
94 ^\s+\S+
95 ^\s*$$
96 ^\s*Total\s+entries\s+displayed -> Record
97 ^\s*-+\s*$$ -> Continue.Record
98 ^\s*-+\s*$$ -> Start
99 ^.* -> Error