def get_lldp_neighbors_detail(self, interface='<STR_LIT>'):
lldp_neighbors = {}<EOL>lldp_table = junos_views.junos_lldp_neighbors_detail_table(self.device)<EOL>try:<EOL><INDENT>lldp_table.get()<EOL><DEDENT>except RpcError as rpcerr:<EOL><INDENT>log.error('<STR_LIT>')<EOL>log.error(rpcerr.message)<EOL>return {}<EOL><DEDENT>interfaces = lldp_table.get().keys()<EOL>lldp_table.GET_RPC = '<STR_LIT>'<EOL>if self.device.facts.get('<STR_LIT>') not in ('<STR_LIT>', '<STR_LIT:M>', '<STR_LIT:T>'):<EOL><INDENT>lldp_table.GET_RPC = '<STR_LIT>'<EOL><DEDENT>for interface in interfaces:<EOL><INDENT>if self.device.facts.get('<STR_LIT>') not in ('<STR_LIT>', '<STR_LIT:M>', '<STR_LIT:T>'):<EOL><INDENT>lldp_table.get(interface_name=interface)<EOL><DEDENT>else:<EOL><INDENT>lldp_table.get(interface_device=interface)<EOL><DEDENT>for item in lldp_table:<EOL><INDENT>if interface not in lldp_neighbors.keys():<EOL><INDENT>lldp_neighbors[interface] = []<EOL><DEDENT>lldp_neighbors[interface].append({<EOL>'<STR_LIT>': item.parent_interface,<EOL>'<STR_LIT>': item.remote_port,<EOL>'<STR_LIT>': napalm_base.helpers.convert(<EOL>napalm_base.helpers.mac, item.remote_chassis_id, item.remote_chassis_id),<EOL>'<STR_LIT>': napalm_base.helpers.convert(<EOL>py23_compat.text_type, item.remote_port_description),<EOL>'<STR_LIT>': item.remote_system_name,<EOL>'<STR_LIT>': item.remote_system_description,<EOL>'<STR_LIT>': item.remote_system_capab,<EOL>'<STR_LIT>': item.remote_system_enable_capab<EOL>})<EOL><DEDENT><DEDENT>return lldp_neighbors<EOL>
Detailed view of the LLDP neighbors.