def get_interfaces(self):
result = {}<EOL>interfaces = junos_views.junos_iface_table(self.device)<EOL>interfaces.get()<EOL>for iface in interfaces.keys():<EOL><INDENT>result[iface] = {<EOL>'<STR_LIT>': interfaces[iface]['<STR_LIT>'],<EOL>'<STR_LIT>': interfaces[iface]['<STR_LIT>'],<EOL>'<STR_LIT:description>': (interfaces[iface]['<STR_LIT:description>'] or u'<STR_LIT>'),<EOL>'<STR_LIT>': float((interfaces[iface]['<STR_LIT>'] or -<NUM_LIT:1>)),<EOL>'<STR_LIT>': napalm_base.helpers.convert(<EOL>napalm_base.helpers.mac,<EOL>interfaces[iface]['<STR_LIT>'],<EOL>py23_compat.text_type(interfaces[iface]['<STR_LIT>'])),<EOL>'<STR_LIT>': -<NUM_LIT:1><EOL>}<EOL>match = re.search(r'<STR_LIT>', interfaces[iface]['<STR_LIT>'] or u'<STR_LIT>')<EOL>if match is None:<EOL><INDENT>continue<EOL><DEDENT>speed_value = napalm_base.helpers.convert(int, match.group(<NUM_LIT:1>), -<NUM_LIT:1>)<EOL>if speed_value == -<NUM_LIT:1>:<EOL><INDENT>continue<EOL><DEDENT>speed_unit = match.group(<NUM_LIT:2>)<EOL>if speed_unit.lower() == '<STR_LIT>':<EOL><INDENT>speed_value *= <NUM_LIT:1000><EOL><DEDENT>result[iface]['<STR_LIT>'] = speed_value<EOL><DEDENT>return result<EOL>
Return interfaces details.