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

Commit

Permalink
Merge pull request #142 from stiltzkin10/bug/star_mac
Browse files Browse the repository at this point in the history
Ignore "*" MACs.
  • Loading branch information
mirceaulinic authored Mar 29, 2017
2 parents f67ad16 + d9a9081 commit ebc0221
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions napalm_junos/junos.py
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,11 @@ def get_mac_address_table(self):
{elem[0]: elem[1] for elem in mac_table_entry[1]}
)
mac = mac_entry.get('mac')

# JUNOS returns '*' for Type = Flood
if mac == '*':
continue

mac_entry['mac'] = napalm_base.helpers.mac(mac)
mac_address_table.append(mac_entry)

Expand Down

0 comments on commit ebc0221

Please sign in to comment.