Skip to content

Commit

Permalink
Fixes 374 - Adds example of Other/unknown media on LLDP for a device … (
Browse files Browse the repository at this point in the history
#377)

* Updated cisco_ios_show_lldp_neighbor_detail template with lenient accountancy for physical media capabilities
  • Loading branch information
jvanderaa authored and FragmentedPacket committed Jul 19, 2019
1 parent 9e29962 commit b046861
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
4 changes: 3 additions & 1 deletion templates/cisco_ios_show_lldp_neighbors_detail.template
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ Start
^.*IP:\s+${MANAGEMENT_IP}
^Auto\s+Negotiation
^Physical\s+media
^\s+.+\(\S+\)\s*$$
# Removed \(\s+\) from the template - The line 'Other/unknown' would not be captured
# Now looks for any text beginning with any space
^\s+.+\s*$$
^Media\s+Attachment
^\s+Inventory
^\s+Capabilities
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,14 @@ parsed_sample:
capabilities: 'T'
management_ip: ''
vlan: ''

- local_interface: 'Te1/1/1'
chassis_id: '2c33.1100.a6c0'
neighbor_port_id: 'Te1/2/13'
neighbor_interface: 'asw22'
neighbor: 'dsw01'
system_description: 'Cisco IOS Software, s6t64 Software (s6t64-ADVENTERPRISEK9-M), Version 15.4(1)SY3, RELEASE SOFTWARE (fc4)'
capabilities: 'B,R'
management_ip: '172.16.0.10'
vlan: '1'

Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,29 @@ MED Information:
PD device, Power source: PSE, Power Priority: High, Wattage: 4.0
Location - not advertised

------------------------------------------------
Local Intf: Te1/1/1
Chassis id: 2c33.1100.a6c0
Port id: Te1/2/13
Port Description: asw22
System Name: dsw01

System Description:
Cisco IOS Software, s6t64 Software (s6t64-ADVENTERPRISEK9-M), Version 15.4(1)SY3, RELEASE SOFTWARE (fc4)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Fri 27-Oct-17 23:06 by prod_rel_team

Time remaining: 110 seconds
System Capabilities: B,R
Enabled Capabilities: B,R
Management Addresses:
IP: 172.16.0.10
Auto Negotiation - supported, enabled
Physical media capabilities:
Other/unknown
Media Attachment Unit type - not advertised
Vlan ID: 1


Total entries displayed: 1
Total entries displayed: 2

0 comments on commit b046861

Please sign in to comment.