def get_mac_address_table(self):
mac_address_table = []<EOL>if self.device.facts.get('<STR_LIT>', '<STR_LIT>') in ['<STR_LIT>']:  <EOL><INDENT>if self.device.facts.get('<STR_LIT>', '<STR_LIT>') in ['<STR_LIT>']:  <EOL><INDENT>mac_table = junos_views.junos_mac_address_table_switch_l2ng(self.device)<EOL><DEDENT>else:<EOL><INDENT>mac_table = junos_views.junos_mac_address_table_switch(self.device)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>mac_table = junos_views.junos_mac_address_table(self.device)<EOL><DEDENT>mac_table.get()<EOL>mac_table_items = mac_table.items()<EOL>default_values = {<EOL>'<STR_LIT>': u'<STR_LIT>',<EOL>'<STR_LIT>': u'<STR_LIT>',<EOL>'<STR_LIT>': <NUM_LIT:0>,<EOL>'<STR_LIT>': False,<EOL>'<STR_LIT>': True,<EOL>'<STR_LIT>': <NUM_LIT:0>,<EOL>'<STR_LIT>': <NUM_LIT:0.0><EOL>}<EOL>for mac_table_entry in mac_table_items:<EOL><INDENT>mac_entry = default_values.copy()<EOL>mac_entry.update(<EOL>{elem[<NUM_LIT:0>]: elem[<NUM_LIT:1>] for elem in mac_table_entry[<NUM_LIT:1>]}<EOL>)<EOL>mac = mac_entry.get('<STR_LIT>')<EOL>if mac == '<STR_LIT:*>':<EOL><INDENT>continue<EOL><DEDENT>mac_entry['<STR_LIT>'] = napalm_base.helpers.mac(mac)<EOL>mac_address_table.append(mac_entry)<EOL><DEDENT>return mac_address_table<EOL>
Return the MAC address table.