Skip to content

Commit cc55820

Browse files
authored
Merge pull request #2325 from julmanglano/pr/paloalto-panos-show-lldp-neighbors-all
Add paloalto_panos show lldp neighbors all
2 parents f64b103 + 1478557 commit cc55820

10 files changed

Lines changed: 1476 additions & 0 deletions

ntc_templates/templates/index

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,7 @@ paloalto_panos_show_high-availability_all.textfsm, .*, paloalto_panos, sh[[ow]]
964964
paloalto_panos_test_security-policy-match.textfsm, .*, paloalto_panos, test security-policy-match.*
965965
paloalto_panos_show_interface_management.textfsm, .*, paloalto_panos, sh[[ow]] int[[erface]] man[[agement]]
966966
paloalto_panos_show_interface_hardware.textfsm, .*, paloalto_panos, sh[[ow]] int[[erface]] hard[[ware]]
967+
paloalto_panos_show_lldp_neighbors_all.textfsm, .*, paloalto_panos, sh[[ow]] ll[[dp]] n[[eighbors]] all
967968
paloalto_panos_show_running_nat-policy.textfsm, .*, paloalto_panos, sh[[ow]] runn[[ing]] nat[[-policy]]
968969
paloalto_panos_show_interface_logical.textfsm, .*, paloalto_panos, sh[[ow]] int[[erface]] logi[[cal]]
969970
paloalto_panos_show_routing_resource.textfsm, .*, paloalto_panos, sh[[ow]] ro[[uting]] res[[ource]]
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
Value Required LOCAL_INTERFACE (\S+)
2+
Value INDEX (\d+)
3+
Value LOCAL_PORT_ID (\S+)
4+
Value NEIGHBOR_CHASSIS_TYPE (\S.*\S)
5+
Value CHASSIS_ID (\S+)
6+
Value PORT_TYPE (\S.*\S)
7+
Value NEIGHBOR_INTERFACE (\S+)
8+
Value NEIGHBOR_INTERFACE_DESCRIPTION (\S.*\S)
9+
Value TTL (\d+)
10+
Value NEIGHBOR_NAME (\S+)
11+
Value NEIGHBOR_DESCRIPTION (\S.*\S)
12+
Value CAPABILITIES_SUPPORTED (\S.*\S)
13+
Value CAPABILITIES (\S.*\S)
14+
Value MGMT_ADDRESS_TYPE (\S+)
15+
Value MGMT_ADDRESS (\S+)
16+
Value INTERFACE_NUMBER (\d+)
17+
Value INTERFACE_TYPE (\S.*\S)
18+
Value OID (\S+)
19+
20+
Start
21+
^\s*Local\s+information:\s*$$ -> Record
22+
^\s*Index\s+${INDEX}\s*$$
23+
^\s*Local\s+interface:\s+${LOCAL_INTERFACE}\s*$$
24+
^\s*Local\s+Port\s+ID:\s+${LOCAL_PORT_ID}\s*$$
25+
^\s*Neighbor\s+information:\s*$$
26+
^\s*Chassis\s+type:\s+${NEIGHBOR_CHASSIS_TYPE}\s*$$
27+
^\s*Chassis\s+ID:\s+${CHASSIS_ID}\s*$$
28+
^\s*Port\s+type:\s+${PORT_TYPE}\s*$$
29+
^\s*Port\s+ID:\s+${NEIGHBOR_INTERFACE}\s*$$
30+
^\s*Port\s+description:\s+${NEIGHBOR_INTERFACE_DESCRIPTION}\s*$$
31+
^\s*Port\s+description:\s*$$
32+
^\s*TTL:\s+${TTL}\s*$$
33+
^\s*System\s+name:\s+${NEIGHBOR_NAME}\s*$$
34+
^\s*System\s+name:\s*$$
35+
^\s*System\s+description:\s+${NEIGHBOR_DESCRIPTION}\s*$$ -> SysDescr
36+
^\s*System\s+description:\s*$$
37+
^\s*System\s+capabilities:\s*$$
38+
^\s*Supported:\s+${CAPABILITIES_SUPPORTED}\s*$$
39+
^\s*Supported:\s*$$
40+
^\s*Enabled:\s+${CAPABILITIES}\s*$$
41+
^\s*Enabled:\s*$$
42+
^\s*Management\s+address\s+type:\s+${MGMT_ADDRESS_TYPE}\s*$$
43+
^\s*Management\s+address:\s+${MGMT_ADDRESS}\s*$$
44+
^\s*Interface\s+number:\s+${INTERFACE_NUMBER}\s*$$
45+
^\s*Interface\s+type:\s+${INTERFACE_TYPE}\s*$$
46+
^\s*oid:\s+${OID}\s*$$
47+
^\s*oid:\s*$$
48+
^\s*$$
49+
^. -> Error
50+
51+
# multi-line System description (e.g. HPE Comware platforms emit a 3-line description)
52+
SysDescr
53+
^\s*System\s+capabilities:\s*$$ -> Start
54+
^\s*\S.*$$
55+
^\s*$$
56+
^. -> Error
Lines changed: 275 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,275 @@
1+
Local information:
2+
Index 26
3+
Local interface: ethernet1/11
4+
Local Port ID: 11
5+
Neighbor information:
6+
7+
Chassis type: MAC address
8+
Chassis ID: 8c:36:7a:aa:bb:cc
9+
Port type: Interface name
10+
Port ID: ethernet1/12
11+
Port description: TRANSIT_INTERFACE_VIA_LOOP_CABLE
12+
TTL: 105
13+
System name: FIREWALL-1
14+
System description: Palo Alto Networks PA-3400 series firewall
15+
System capabilities:
16+
Supported: O, P, B, R,
17+
Enabled: O, R,
18+
19+
Local information:
20+
Index 27
21+
Local interface: ethernet1/12
22+
Local Port ID: 12
23+
Neighbor information:
24+
25+
Chassis type: MAC address
26+
Chassis ID: 8c:36:7a:aa:bb:cc
27+
Port type: Interface name
28+
Port ID: ethernet1/11
29+
Port description:
30+
TTL: 105
31+
System name:
32+
System description:
33+
System capabilities:
34+
Supported:
35+
Enabled:
36+
37+
Local information:
38+
Index 30
39+
Local interface: ethernet1/15
40+
Local Port ID: 15
41+
Neighbor information:
42+
43+
Chassis type: MAC address
44+
Chassis ID: bc:d7:a5:aa:bb:cc
45+
Port type: Interface name
46+
Port ID: 1/1/4
47+
Port description: UPLINK_TO_FIREWALL-2_A
48+
TTL: 119
49+
System name: SWITCH-1
50+
System description: Aruba JL635A GL.10.13.1050
51+
System capabilities:
52+
Supported: B, R,
53+
Enabled: B, R,
54+
Management address type: ipv4
55+
Management address: 192.0.2.10
56+
Interface number: 33554532
57+
Interface type: Ifindex
58+
oid: 1.3.6.1.2.1.31.1.1.1.1.33554532.
59+
60+
61+
Local information:
62+
Index 32
63+
Local interface: ethernet1/17
64+
Local Port ID: 17
65+
Neighbor information:
66+
67+
Chassis type: MAC address
68+
Chassis ID: bc:d7:a5:dd:ee:ff
69+
Port type: Interface name
70+
Port ID: 1/1/4
71+
Port description: UPLINK_TO_FIREWALL-2_A - 1/17
72+
TTL: 117
73+
System name: SWITCH-2
74+
System description: Aruba JL635A GL.10.13.1050
75+
System capabilities:
76+
Supported: B, R,
77+
Enabled: B, R,
78+
Management address type: ipv4
79+
Management address: 192.0.2.20
80+
Interface number: 33554532
81+
Interface type: Ifindex
82+
oid: 1.3.6.1.2.1.31.1.1.1.1.33554532.
83+
84+
85+
Local information:
86+
Index 34
87+
Local interface: ethernet1/19
88+
Local Port ID: 19
89+
Neighbor information:
90+
91+
Chassis type: MAC address
92+
Chassis ID: bc:d7:a5:aa:bb:cc
93+
Port type: Interface name
94+
Port ID: 1/1/6
95+
Port description: UPLINK_TO_FIREWALL-2_B
96+
TTL: 119
97+
System name: SWITCH-1
98+
System description: Aruba JL635A GL.10.13.1050
99+
System capabilities:
100+
Supported: B, R,
101+
Enabled: B, R,
102+
Management address type: ipv4
103+
Management address: 192.0.2.10
104+
Interface number: 33554532
105+
Interface type: Ifindex
106+
oid: 1.3.6.1.2.1.31.1.1.1.1.33554532.
107+
108+
109+
Local information:
110+
Index 35
111+
Local interface: ethernet1/20
112+
Local Port ID: 20
113+
Neighbor information:
114+
115+
Chassis type: MAC address
116+
Chassis ID: bc:d7:a5:dd:ee:ff
117+
Port type: Interface name
118+
Port ID: 1/1/6
119+
Port description: UPLINK_TO_FIREWALL-2_B - 1/1/19
120+
TTL: 117
121+
System name: SWITCH-2
122+
System description: Aruba JL635A GL.10.13.1050
123+
System capabilities:
124+
Supported: B, R,
125+
Enabled: B, R,
126+
Management address type: ipv4
127+
Management address: 192.0.2.20
128+
Interface number: 33554532
129+
Interface type: Ifindex
130+
oid: 1.3.6.1.2.1.31.1.1.1.1.33554532.
131+
132+
133+
Local information:
134+
Index 36
135+
Local interface: ethernet1/21
136+
Local Port ID: 21
137+
Neighbor information:
138+
139+
Chassis type: MAC address
140+
Chassis ID: bc:d7:a5:aa:bb:cc
141+
Port type: Interface name
142+
Port ID: 1/1/5
143+
Port description: UPLINK_TO_FIREWALL-2_C
144+
TTL: 119
145+
System name: SWITCH-1
146+
System description: Aruba JL635A GL.10.13.1050
147+
System capabilities:
148+
Supported: B, R,
149+
Enabled: B, R,
150+
Management address type: ipv4
151+
Management address: 192.0.2.10
152+
Interface number: 33554532
153+
Interface type: Ifindex
154+
oid: 1.3.6.1.2.1.31.1.1.1.1.33554532.
155+
156+
157+
Local information:
158+
Index 37
159+
Local interface: ethernet1/22
160+
Local Port ID: 22
161+
Neighbor information:
162+
163+
Chassis type: MAC address
164+
Chassis ID: bc:d7:a5:dd:ee:ff
165+
Port type: Interface name
166+
Port ID: 1/1/5
167+
Port description: UPLINK_TO_FIREWALL-2_C - 1/22
168+
TTL: 117
169+
System name: SWITCH-2
170+
System description: Aruba JL635A GL.10.13.1050
171+
System capabilities:
172+
Supported: B, R,
173+
Enabled: B, R,
174+
Management address type: ipv4
175+
Management address: 192.0.2.20
176+
Interface number: 33554532
177+
Interface type: Ifindex
178+
oid: 1.3.6.1.2.1.31.1.1.1.1.33554532.
179+
180+
181+
Local information:
182+
Index 28
183+
Local interface: ethernet1/13
184+
Local Port ID: 13
185+
Neighbor information:
186+
187+
Chassis type: MAC address
188+
Chassis ID: f4:03:43:aa:bb:cc
189+
Port type: Locally assigned
190+
Port ID: 23
191+
Port description: 1/23
192+
TTL: 101
193+
System name: SWITCH-3
194+
System description: Aruba JL319A 2930M-24G Switch, revision WC.16.11.0021, ROM WC.17.02.0007 (/ws/swbuildm/rel_beluru_qaoff/code/build/lvm(swbuildm_rel_beluru_qaoff_rel_beluru))
195+
System capabilities:
196+
Supported: B, R,
197+
Enabled: B,
198+
Management address type: ipv4
199+
Management address: 192.0.2.30
200+
Interface number: 0
201+
Interface type: Ifindex
202+
oid:
203+
204+
205+
Local information:
206+
Index 29
207+
Local interface: ethernet1/14
208+
Local Port ID: 14
209+
Neighbor information:
210+
211+
Chassis type: MAC address
212+
Chassis ID: f4:03:43:aa:bb:cc
213+
Port type: Locally assigned
214+
Port ID: 22
215+
Port description: 1/22
216+
TTL: 101
217+
System name: SWITCH-3
218+
System description: Aruba JL319A 2930M-24G Switch, revision WC.16.11.0021, ROM WC.17.02.0007 (/ws/swbuildm/rel_beluru_qaoff/code/build/lvm(swbuildm_rel_beluru_qaoff_rel_beluru))
219+
System capabilities:
220+
Supported: B, R,
221+
Enabled: B,
222+
Management address type: ipv4
223+
Management address: 192.0.2.30
224+
Interface number: 0
225+
Interface type: Ifindex
226+
oid:
227+
228+
229+
Local information:
230+
Index 23
231+
Local interface: ethernet1/8
232+
Local Port ID: 8
233+
Neighbor information:
234+
235+
Chassis type: MAC address
236+
Chassis ID: f4:03:43:aa:bb:cc
237+
Port type: Locally assigned
238+
Port ID: 5
239+
Port description: 1/5
240+
TTL: 101
241+
System name: SWITCH-3
242+
System description: Aruba JL319A 2930M-24G Switch, revision WC.16.11.0021, ROM WC.17.02.0007 (/ws/swbuildm/rel_beluru_qaoff/code/build/lvm(swbuildm_rel_beluru_qaoff_rel_beluru))
243+
System capabilities:
244+
Supported: B, R,
245+
Enabled: B,
246+
Management address type: ipv4
247+
Management address: 192.0.2.30
248+
Interface number: 0
249+
Interface type: Ifindex
250+
oid:
251+
252+
253+
Local information:
254+
Index 31
255+
Local interface: ethernet1/16
256+
Local Port ID: 16
257+
Neighbor information:
258+
259+
Chassis type: MAC address
260+
Chassis ID: f4:03:43:aa:bb:cc
261+
Port type: Locally assigned
262+
Port ID: 21
263+
Port description: 1/21
264+
TTL: 101
265+
System name: SWITCH-3
266+
System description: Aruba JL319A 2930M-24G Switch, revision WC.16.11.0021, ROM WC.17.02.0007 (/ws/swbuildm/rel_beluru_qaoff/code/build/lvm(swbuildm_rel_beluru_qaoff_rel_beluru))
267+
System capabilities:
268+
Supported: B, R,
269+
Enabled: B,
270+
Management address type: ipv4
271+
Management address: 192.0.2.30
272+
Interface number: 0
273+
Interface type: Ifindex
274+
oid:
275+

0 commit comments

Comments
 (0)