Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
afourmy committed Nov 8, 2017
1 parent db98ecc commit 7795fcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions napalm/ios/ios.py
Original file line number Diff line number Diff line change
Expand Up @@ -2205,11 +2205,11 @@ def get_ipv6_neighbors_table(self):
command = 'show ipv6 neighbors'
output = self._send_command(command)

for entry in output.split('\n')[4:]:
for entry in output.split('\n')[1:]:
# typical format of an entry in the IOS IPv6 neighbors table:
# 2002:FFFF:233::1 0 2894.0fed.be30 REACH Fa3/1/2.233
ip, age, mac, state, interface = entry.split()
mac = -1 if mac == '-' else napalm.base.helpers.mac(mac)
mac = '' if mac == '-' else napalm.base.helpers.mac(mac)
ipv6_neighbors_table.append({
'interface': interface,
'mac': mac,
Expand Down

0 comments on commit 7795fcc

Please sign in to comment.