Skip to content
This repository has been archived by the owner on Mar 7, 2018. It is now read-only.

Commit

Permalink
Merge pull request #176 from bholmgren/develop
Browse files Browse the repository at this point in the history
Thanks @bholmgren 
You fix will be included in the next release, 0.6.1.
  • Loading branch information
mirceaulinic committed Aug 28, 2017
2 parents 2c04fcf + f1b519f commit cbd3824
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions napalm_eos/eos.py
Expand Up @@ -535,12 +535,13 @@ def get_lldp_neighbors_detail(self, interface=''):
remote_chassis_id = neighbor.get('chassisId', u'')
if neighbor.get("chassisIdType", u'') == "macAddress":
remote_chassis_id = napalm_base.helpers.mac(remote_chassis_id)
neighbor_interface_info = neighbor.get('neighborInterfaceInfo', {})
lldp_neighbors_out[interface].append(
{
'parent_interface': interface, # no parent interfaces
'remote_port':
neighbor.get('neighborInterfaceInfo', {}).get('interfaceId', u''),
'remote_port_description': u'',
'remote_port': neighbor_interface_info.get('interfaceId', u''),
'remote_port_description':
neighbor_interface_info.get('interfaceDescription', u''),
'remote_system_name': neighbor.get('systemName', u''),
'remote_system_description': neighbor.get('systemDescription', u''),
'remote_chassis_id': remote_chassis_id,
Expand Down

0 comments on commit cbd3824

Please sign in to comment.