Skip to content

Commit

Permalink
Enforce int conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
ExaneServerTeam committed Sep 2, 2020
1 parent 4e24a07 commit 54c2701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions napalm/nxos_ssh/nxos_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -1717,7 +1717,7 @@ def get_interfaces_counters(self):
interface = re_match.group()
map_d = if_mapping[if_v]['mapping']
for k, v in map_d.items():
if_counter[k] = row[v] if v in row else 0
if_counter[k] = int(row[v]) if v in row else 0
all_stats_d[interface] = if_counter
break
print(all_stats_d)
Expand All @@ -1733,7 +1733,7 @@ def get_interfaces_counters(self):
map_d = if_mapping[if_v]['mapping']
for k, v in map_d.items():
if v in row:
if_counter[k] = row[v]
if_counter[k] = int(row[v])
all_stats_d[interface].update(if_counter)
break

Expand Down

0 comments on commit 54c2701

Please sign in to comment.